Fix 1674142: We need to process pending events whether using close() or safe_close...
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 6 Mar 2007 22:35:17 +0000 (22:35 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Tue, 6 Mar 2007 22:35:17 +0000 (22:35 +0000)
git-svn-id: http://svn.voria.com/code@265 1f10aa63-cdf2-0310-b900-c93c546f37ac

synfig-studio/trunk/src/gtkmm/instance.cpp

index 42a6ec8..75f6fdf 100644 (file)
@@ -322,6 +322,8 @@ Instance::close()
        // Delete all of the canvas views
        canvas_view_list().clear();
 
+       while(studio::App::events_pending())studio::App::iteration(false);
+
        // If there is another open instance to select,
        // go ahead and do so. If not, never mind.
        if(studio::App::instance_list.empty())
@@ -634,8 +636,6 @@ Instance::safe_close()
        
        close();
 
-       while(studio::App::events_pending())studio::App::iteration(false);
-
        return true;
 }