From e4cb6e1894763fa416e6f44182b33c486721fde9 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Wed, 9 Aug 2017 14:12:54 +0200 Subject: Lua Message dialog, push splash screen if needed. --- gtk2_ardour/luadialog.cc | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'gtk2_ardour') 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; -- cgit v1.2.3