13
0

startupFSM: move definition of ::set_complete into source file

and also disconnect from Keyboard signal when called.
This commit is contained in:
Paul Davis 2023-11-14 11:02:08 -07:00
parent 8e583f4c4c
commit 729eb60de3
2 changed files with 11 additions and 4 deletions

View File

@ -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 */)
{

View File

@ -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;