Fix 1682008: (pressing the X button hides then shows window)
authordooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 12 Oct 2007 12:18:26 +0000 (12:18 +0000)
committerdooglus <dooglus@1f10aa63-cdf2-0310-b900-c93c546f37ac>
Fri, 12 Oct 2007 12:18:26 +0000 (12:18 +0000)
git-svn-id: http://svn.voria.com/code@912 1f10aa63-cdf2-0310-b900-c93c546f37ac

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

index 1ab07b1..9f4860e 100644 (file)
@@ -3539,8 +3539,10 @@ CanvasView::on_delete_event(GdkEventAny* event)
                        ,250
                );
        }
-       if(event)
-               return Gtk::Window::on_delete_event(event);
+
+       //! \todo This causes the window to be deleted straight away - but what if we prompt 'save?' and the user cancels?
+       //                Is there ever any need to pass on the delete event to the window here?
+       // if(event) return Gtk::Window::on_delete_event(event);
 
        return true;
 }