diff options
author | Robin Gareus <robin@gareus.org> | 2017-08-09 14:12:54 +0200 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-08-10 02:26:01 +0200 |
commit | e4cb6e1894763fa416e6f44182b33c486721fde9 (patch) | |
tree | 43774cf86b6145107c749d620d65d9a97e5359c7 /gtk2_ardour/luadialog.cc | |
parent | 8eb3b9d34b862822fbc670458a247bc74c975289 (diff) |
Lua Message dialog, push splash screen if needed.
Diffstat (limited to 'gtk2_ardour/luadialog.cc')
-rw-r--r-- | gtk2_ardour/luadialog.cc | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/gtk2_ardour/luadialog.cc b/gtk2_ardour/luadialog.cc index 04040c8201..a6ac48edc1 100644 --- a/gtk2_ardour/luadialog.cc +++ b/gtk2_ardour/luadialog.cc @@ -28,6 +28,7 @@ #include "ardour_dialog.h" #include "luadialog.h" +#include "splash.h" #include "utils.h" using namespace LuaDialog; @@ -44,8 +45,24 @@ Message::Message (std::string const& title, std::string const& msg, Message::Mes int Message::run () { + + bool _splash_pushed; + Splash* spl = Splash::instance(); + if (spl && spl->is_visible()) { + spl->pop_back_for (_message_dialog); + _splash_pushed = true; + } + int rv = _message_dialog.run (); _message_dialog.hide (); + + if (_splash_pushed) { + spl = Splash::instance(); + if (spl) { + spl->pop_front(); + } + } + switch (rv) { case Gtk::RESPONSE_OK: return 0; |