From bface46565b5e8d219a51cab190e0735920c8b16 Mon Sep 17 00:00:00 2001 From: dooglus Date: Fri, 12 Oct 2007 12:18:26 +0000 Subject: [PATCH] Fix 1682008: (pressing the X button hides then shows window) git-svn-id: http://svn.voria.com/code@912 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/canvasview.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; } -- 2.7.4