From 729eb60de3c5b509946ad030fea94f405affabb6 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 14 Nov 2023 11:02:08 -0700 Subject: [PATCH] startupFSM: move definition of ::set_complete into source file and also disconnect from Keyboard signal when called. --- gtk2_ardour/startup_fsm.cc | 10 ++++++++++ gtk2_ardour/startup_fsm.h | 5 +---- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/gtk2_ardour/startup_fsm.cc b/gtk2_ardour/startup_fsm.cc index 9c023a04e4..6adb7d87f7 100644 --- a/gtk2_ardour/startup_fsm.cc +++ b/gtk2_ardour/startup_fsm.cc @@ -111,6 +111,16 @@ StartupFSM::~StartupFSM () delete new_user_dialog; } +void +StartupFSM::set_complete () +{ + app_quit_connection.disconnect (); + hide_quit_connection.disconnect (); + + _state = NotWaiting; + PBD::stacktrace (std::cerr, 12); +} + void StartupFSM::dialog_hidden (Gtk::Window* /* ignored */) { diff --git a/gtk2_ardour/startup_fsm.h b/gtk2_ardour/startup_fsm.h index 242ef464e1..16dc1ccc18 100644 --- a/gtk2_ardour/startup_fsm.h +++ b/gtk2_ardour/startup_fsm.h @@ -85,10 +85,7 @@ class StartupFSM : public sigc::trackable void handle_path (std::string const & path); bool complete() const { return _state == NotWaiting; } - void set_complete () { - app_quit_connection.disconnect (); - _state = NotWaiting; - } + void set_complete (); private: bool new_user;