fix prev commit SaveSession() signal was sent too late.

This commit is contained in:
Robin Gareus 2013-04-08 20:52:33 +02:00
parent 8630fd1703
commit d9df0ea6e5
1 changed files with 2 additions and 2 deletions

View File

@ -772,6 +772,8 @@ Session::save_state (string snapshot_name, bool pending, bool switch_to_snapshot
}
}
SaveSession (); /* EMIT SIGNAL */
tree.set_root (&get_state());
if (snapshot_name.empty()) {
@ -827,8 +829,6 @@ Session::save_state (string snapshot_name, bool pending, bool switch_to_snapshot
if (!pending) {
SaveSession (); /* EMIT SIGNAL */
save_history (snapshot_name);
bool was_dirty = dirty();