Helpviewer/History/HistoryMenu.py

changeset 541
00e1a5d060c5
parent 538
7f1a56e80124
child 791
9ec2ac20e54e
--- a/Helpviewer/History/HistoryMenu.py	Tue Aug 31 13:39:24 2010 +0200
+++ b/Helpviewer/History/HistoryMenu.py	Tue Aug 31 16:38:06 2010 +0200
@@ -301,11 +301,7 @@
         Private slot to clear the history.
         """
         if self.__historyManager is not None and \
-           E5MessageBox.question(self,
+           E5MessageBox.yesNo(self,
                 self.trUtf8("Clear History"),
-                self.trUtf8("""Do you want to clear the history?"""),
-                QMessageBox.StandardButtons(\
-                    QMessageBox.No | \
-                    QMessageBox.Yes),
-                QMessageBox.No) == QMessageBox.Yes:
-            self.__historyManager.clear()
\ No newline at end of file
+                self.trUtf8("""Do you want to clear the history?""")):
+            self.__historyManager.clear()

eric ide

mercurial