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,8 +106,9 @@ 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 ()),
|
||||||
false, Gtk::MESSAGE_WARNING);
|
_("The selected preset did not load successfully!\nPerhaps it references a format that has been removed?"),
|
||||||
|
false, Gtk::MESSAGE_WARNING);
|
||||||
dialog.run ();
|
dialog.run ();
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -131,8 +132,9 @@ 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 ()),
|
||||||
false, Gtk::MESSAGE_WARNING);
|
_("The selected preset did not load successfully!\nPerhaps it references a format that has been removed?"),
|
||||||
|
false, Gtk::MESSAGE_WARNING);
|
||||||
dialog.run ();
|
dialog.run ();
|
||||||
}
|
}
|
||||||
sync_with_manager ();
|
sync_with_manager ();
|
||||||
@ -189,10 +191,11 @@ ExportPresetSelector::remove_current ()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Gtk::MessageDialog dialog (_("Do you really want to remove this preset?"),
|
ArdourMessageDialog dialog (dynamic_cast<Gtk::Window*> (get_toplevel ()),
|
||||||
false,
|
_("Do you really want to remove this preset?"),
|
||||||
Gtk::MESSAGE_QUESTION,
|
false,
|
||||||
Gtk::BUTTONS_YES_NO);
|
Gtk::MESSAGE_QUESTION,
|
||||||
|
Gtk::BUTTONS_YES_NO);
|
||||||
|
|
||||||
if (Gtk::RESPONSE_YES != dialog.run ()) {
|
if (Gtk::RESPONSE_YES != dialog.run ()) {
|
||||||
/* User has selected "no" or closed the dialog, better
|
/* User has selected "no" or closed the dialog, better
|
||||||
|
Loading…
Reference in New Issue
Block a user