From: dooglus Date: Fri, 12 Oct 2007 12:18:26 +0000 (+0000) Subject: Fix 1682008: (pressing the X button hides then shows window) X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=bface46565b5e8d219a51cab190e0735920c8b16;p=synfig.git Fix 1682008: (pressing the X button hides then shows window) git-svn-id: http://svn.voria.com/code@912 1f10aa63-cdf2-0310-b900-c93c546f37ac --- diff --git a/synfig-studio/trunk/src/gtkmm/canvasview.cpp b/synfig-studio/trunk/src/gtkmm/canvasview.cpp index 1ab07b1..9f4860e 100644 --- a/synfig-studio/trunk/src/gtkmm/canvasview.cpp +++ b/synfig-studio/trunk/src/gtkmm/canvasview.cpp @@ -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; }