vtl: resume if "don't close/exit" is selected
authorRobin Gareus <robin@gareus.org>
Mon, 8 Apr 2013 22:48:15 +0000 (00:48 +0200)
committerRobin Gareus <robin@gareus.org>
Tue, 9 Apr 2013 02:05:34 +0000 (04:05 +0200)
gtk2_ardour/ardour_ui.cc
gtk2_ardour/ardour_ui_dialogs.cc

index c29c8136a08e07822f4dc322d8f53ce896dfcf43..83931816be1780d98b50576c514cd83059036b24 100644 (file)
@@ -849,6 +849,7 @@ ARDOUR_UI::finish()
                        actions.push_back (_("Save and quit"));
                        switch (ask_about_saving_session(actions)) {
                        case -1:
+                               ARDOUR_UI::instance()->video_timeline->set_session(_session);
                                return;
                                break;
                        case 1:
index 2789c37464eef9ef7dddb2b819d8166f5bdcce06..fb31ba513a0543e4caf227f8af6e6d8dda71919b 100644 (file)
@@ -217,6 +217,10 @@ ARDOUR_UI::unload_session (bool hide_stuff)
 {
 #ifdef WITH_VIDEOTIMELINE
        if (_session) {
+               /* close video-monitor
+                * this needed to enfore querying its settings (window size,..)
+                * which are reported asynchroneously.
+                */
                ARDOUR_UI::instance()->video_timeline->close_session();
        }
 #endif
@@ -227,6 +231,7 @@ ARDOUR_UI::unload_session (bool hide_stuff)
                actions.push_back (_("Save and close"));
                switch (ask_about_saving_session (actions)) {
                case -1:
+                       ARDOUR_UI::instance()->video_timeline->set_session(_session);
                        // cancel
                        return 1;