}
ArdourDialog::~ArdourDialog ()
+{
+ pop_splash ();
+ Keyboard::the_keyboard().focus_out_window (0, this);
+ WM::Manager::instance().remove (proxy);
+}
+
+void
+ArdourDialog::on_response (int response_id)
+{
+ pop_splash ();
+ hide ();
+ Gtk::Dialog::on_response (response_id);
+}
+
+void
+ArdourDialog::pop_splash ()
{
if (_splash_pushed) {
Splash* spl = Splash::instance();
if (spl) {
spl->pop_front();
}
+ _splash_pushed = false;
}
- Keyboard::the_keyboard().focus_out_window (0, this);
- WM::Manager::instance().remove (proxy);
}
bool
bool on_delete_event (GdkEventAny*);
void on_unmap ();
void on_show ();
+ void on_response (int);
private:
WM::ProxyTemporary* proxy;
bool _splash_pushed;
void init ();
+ void pop_splash ();
static sigc::signal<void> CloseAllDialogs;
};
EngineControl::on_show ()
{
ArdourDialog::on_show ();
- if (Splash::instance()) {
- Splash::instance()->hide ();
- }
if (!ARDOUR::AudioEngine::instance()->current_backend() || !ARDOUR::AudioEngine::instance()->running()) {
// re-check _have_control (jackd running) see #6041
backend_changed ();
start_engine ();
if (!ARDOUR_UI::instance()->session_loaded) {
ArdourDialog::on_response (RESPONSE_OK);
- if (Splash::instance()) {
- Splash::instance()->pop_front ();
- }
}
}
}
start_engine ();
if (!ARDOUR_UI::instance()->session_loaded) {
ArdourDialog::on_response (RESPONSE_OK);
- if (Splash::instance()) {
- Splash::instance()->pop_front ();
- }
}
}
}