Helpviewer/HelpWindow.py

changeset 541
00e1a5d060c5
parent 539
87f9bce38a44
child 545
1538031b5175
--- a/Helpviewer/HelpWindow.py	Tue Aug 31 13:39:24 2010 +0200
+++ b/Helpviewer/HelpWindow.py	Tue Aug 31 16:38:06 2010 +0200
@@ -2052,12 +2052,8 @@
                               """ Until you close the window, you can still click"""
                               """ the Back and Forward buttons to return to the"""
                               """ web pages you have opened.</p>""")
-            res = E5MessageBox.question(self, "", txt,
-                QMessageBox.StandardButtons(\
-                    QMessageBox.Yes | \
-                    QMessageBox.No),
-                QMessageBox.No)
-            if res == QMessageBox.Yes:
+            res = E5MessageBox.yesNo(self, "", txt)
+            if res:
                 settings.setAttribute(QWebSettings.PrivateBrowsingEnabled, True)
                 self.pathCombo.setInsertPolicy(QComboBox.NoInsert)
                 self.privacyLabel.setPixmap(
@@ -2973,4 +2969,4 @@
         else:
             print(codecs[offset])
             QWebSettings.globalSettings().setDefaultTextEncoding(codecs[offset])
-            Preferences.setHelp("DefaultTextEncoding", codecs[offset])
\ No newline at end of file
+            Preferences.setHelp("DefaultTextEncoding", codecs[offset])

eric ide

mercurial