Keep preset message dialog on top of export dialog
This commit is contained in:
parent
ccef22f998
commit
5fe127eb49
|
@ -19,12 +19,12 @@
|
||||||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <gtkmm/messagedialog.h>
|
|
||||||
#include <gtkmm/stock.h>
|
#include <gtkmm/stock.h>
|
||||||
|
|
||||||
#include "ardour/export_preset.h"
|
#include "ardour/export_preset.h"
|
||||||
|
|
||||||
#include "export_preset_selector.h"
|
#include "export_preset_selector.h"
|
||||||
|
#include "ardour_message.h"
|
||||||
|
|
||||||
#include "pbd/i18n.h"
|
#include "pbd/i18n.h"
|
||||||
|
|
||||||
|
@ -106,7 +106,8 @@ ExportPresetSelector::selection_changed ()
|
||||||
assert (list->iter_is_valid (it));
|
assert (list->iter_is_valid (it));
|
||||||
current = it->get_value (cols.preset);
|
current = it->get_value (cols.preset);
|
||||||
if (!profile_manager->load_preset (current)) {
|
if (!profile_manager->load_preset (current)) {
|
||||||
Gtk::MessageDialog dialog (_("The selected preset did not load successfully!\nPerhaps it references a format that has been removed?"),
|
ArdourMessageDialog dialog (dynamic_cast<Gtk::Window*> (get_toplevel ()),
|
||||||
|
_("The selected preset did not load successfully!\nPerhaps it references a format that has been removed?"),
|
||||||
false, Gtk::MESSAGE_WARNING);
|
false, Gtk::MESSAGE_WARNING);
|
||||||
dialog.run ();
|
dialog.run ();
|
||||||
}
|
}
|
||||||
|
@ -131,7 +132,8 @@ ExportPresetSelector::update_selection ()
|
||||||
if (list->iter_is_valid (it)) {
|
if (list->iter_is_valid (it)) {
|
||||||
previous = current = it->get_value (cols.preset);
|
previous = current = it->get_value (cols.preset);
|
||||||
if (!profile_manager->load_preset (current)) {
|
if (!profile_manager->load_preset (current)) {
|
||||||
Gtk::MessageDialog dialog (_("The selected preset did not load successfully!\nPerhaps it references a format that has been removed?"),
|
ArdourMessageDialog dialog (dynamic_cast<Gtk::Window*> (get_toplevel ()),
|
||||||
|
_("The selected preset did not load successfully!\nPerhaps it references a format that has been removed?"),
|
||||||
false, Gtk::MESSAGE_WARNING);
|
false, Gtk::MESSAGE_WARNING);
|
||||||
dialog.run ();
|
dialog.run ();
|
||||||
}
|
}
|
||||||
|
@ -189,7 +191,8 @@ ExportPresetSelector::remove_current ()
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Gtk::MessageDialog dialog (_("Do you really want to remove this preset?"),
|
ArdourMessageDialog dialog (dynamic_cast<Gtk::Window*> (get_toplevel ()),
|
||||||
|
_("Do you really want to remove this preset?"),
|
||||||
false,
|
false,
|
||||||
Gtk::MESSAGE_QUESTION,
|
Gtk::MESSAGE_QUESTION,
|
||||||
Gtk::BUTTONS_YES_NO);
|
Gtk::BUTTONS_YES_NO);
|
||||||
|
|
Loading…
Reference in New Issue