Properly revert FormatSpec changes on "cancel"
[ardour.git] / gtk2_ardour / interthread_progress_window.cc
index c74f12914f3d37a62720e16edee0f44d6af56d09..eb32d3e8faac27f6a144fcf7bf322090c3b033fe 100644 (file)
@@ -35,6 +35,8 @@ InterthreadProgressWindow::InterthreadProgressWindow (ARDOUR::InterThreadInfo* i
        : ArdourDialog (t, true)
        , _interthread_info (i)
 {
+       _interthread_info->cancel = false;
+
        _bar.set_orientation (Gtk::PROGRESS_LEFT_TO_RIGHT);
 
        set_border_width (12);
@@ -50,8 +52,6 @@ InterthreadProgressWindow::InterthreadProgressWindow (ARDOUR::InterThreadInfo* i
 
        set_default_size (200, 100);
        show_all ();
-       hide ();
-       _interthread_info->cancel = false; // override on_hide
 
        Glib::signal_timeout().connect (sigc::mem_fun (*this, &InterthreadProgressWindow::update), 100);
 }