Helpviewer/HelpTabWidget.py

changeset 1636
6a25bb84e2a3
parent 1539
b2d98c2e2e43
child 1645
73904ca06d2d
diff -r 40ac3aee809c -r 6a25bb84e2a3 Helpviewer/HelpTabWidget.py
--- a/Helpviewer/HelpTabWidget.py	Sat Feb 18 12:21:39 2012 +0100
+++ b/Helpviewer/HelpTabWidget.py	Sat Feb 18 16:10:22 2012 +0100
@@ -646,7 +646,7 @@
         
         @return flag indicating a shut down (boolean)
         """
-        if self.count() > 1:
+        if self.count() > 1 and Preferences.getHelp("WarnOnMultipleClose"):
             mb = E5MessageBox.E5MessageBox(E5MessageBox.Information,
                 self.trUtf8("Are you sure you want to close the window?"),
                 self.trUtf8("""Are you sure you want to close the window?\n"""

eric ide

mercurial