use syntactic sugar
[ardour.git] / gtk2_ardour / export_format_selector.cc
index c77a09cdec08e1248e24afe6fb7cf879fd0ba649..cf973b86b3d367f89238a7b58d204020fcb4aa8b 100644 (file)
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
 */
-
-#include "export_format_selector.h"
-
-#include "export_format_dialog.h"
+#include <gtkmm/messagedialog.h>
+#include <gtkmm/stock.h>
 
 #include "ardour/export_format_specification.h"
 #include "ardour/export_profile_manager.h"
 
+#include "export_format_selector.h"
+#include "export_format_dialog.h"
+
 #include "pbd/i18n.h"
 
 ExportFormatSelector::ExportFormatSelector () :
@@ -158,6 +159,9 @@ ExportFormatSelector::open_edit_dialog (bool new_dialog)
                update_format_description ();
                FormatEdited (state->format);
                CriticalSelectionChanged();
+       } else {
+               FormatReverted (state->format);
+               CriticalSelectionChanged();
        }
        return response;
 }