mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-07 06:05:43 +01:00
[Summary] pop-up dialog rework
This commit is contained in:
parent
95b86fdf56
commit
5a764a5cbb
1 changed files with 6 additions and 15 deletions
|
|
@ -144,6 +144,7 @@ typedef uint64_t microseconds_t;
|
|||
#include "i18n.h"
|
||||
|
||||
#include "open_file_dialog_proxy.h"
|
||||
#include "ok_dialog.h"
|
||||
|
||||
using namespace ARDOUR;
|
||||
using namespace ARDOUR_UI_UTILS;
|
||||
|
|
@ -2944,21 +2945,11 @@ ARDOUR_UI::load_session (const std::string& path, const std::string& snap_name,
|
|||
|
||||
catch (...) {
|
||||
|
||||
MessageDialog msg (string_compose(
|
||||
_("Session \"%1 (snapshot %2)\" did not load successfully"),
|
||||
path, snap_name),
|
||||
true,
|
||||
Gtk::MESSAGE_INFO,
|
||||
BUTTONS_OK);
|
||||
|
||||
msg.set_keep_above (true);
|
||||
msg.set_title (_("Loading Error"));
|
||||
msg.set_position (Gtk::WIN_POS_CENTER);
|
||||
pop_back_splash (msg);
|
||||
msg.present ();
|
||||
(void) msg.run ();
|
||||
msg.hide ();
|
||||
|
||||
OkDialog ok_dialog ("Loading Error", string_compose(_("Session \"%1 (snapshot %2)\"\ndid not load successfully"), path, snap_name));
|
||||
ok_dialog.set_position (Gtk::WIN_POS_CENTER);
|
||||
pop_back_splash (ok_dialog);
|
||||
ok_dialog.run ();
|
||||
|
||||
goto out;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue