r14906 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:38 CET 2010


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

Changeset: 
M  /trunk/Scribus/scribus/ui/storyeditor.cpp

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




More information about the scribus-commit mailing list