r14905 by jghali - #8946: When closing Story Editor with Escape key "Cancel" functions as "Yes"

scribus-commit scribus-commit at lists.scribus.net
Thu Mar 18 22:00:20 CET 2010


Revision: 14905
Author: jghali
Date: 2010-03-18T20:52:03.240101Z
Commit message: #8946: When closing Story Editor with Escape key "Cancel" functions as "Yes"

Changeset: 
M  /branches/Version135/Scribus/scribus/storyeditor.cpp

Diffs:
Index: scribus/storyeditor.cpp
===================================================================
--- scribus/storyeditor.cpp	(revision 14904)
+++ scribus/storyeditor.cpp	(revision 14905)
@@ -2074,7 +2074,7 @@
 	smartSelection = newSmartSelection;
 }
 
-void StoryEditor::closeEvent(QCloseEvent *)
+void StoryEditor::closeEvent(QCloseEvent *e)
 {
 	if (textChanged)
 	{
@@ -2092,6 +2092,7 @@
 		}
 		else if (t == QMessageBox::Cancel)
 		{
+			e->ignore();
 			blockUpdate = false;
 			return;
 		}




More information about the scribus-commit mailing list