startupFSM: move definition of ::set_complete into source file
and also disconnect from Keyboard signal when called.
This commit is contained in:
parent
8e583f4c4c
commit
729eb60de3
@ -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 */)
|
||||
{
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user