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

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