Tasks/TaskViewer.py

changeset 541
00e1a5d060c5
parent 538
7f1a56e80124
child 564
b3d966393ba9
--- a/Tasks/TaskViewer.py	Tue Aug 31 13:39:24 2010 +0200
+++ b/Tasks/TaskViewer.py	Tue Aug 31 16:38:06 2010 +0200
@@ -712,15 +712,12 @@
         @param on flag indicating the filter state (boolean)
         """
         if on and not self.taskFilter.hasActiveFilter():
-            res = E5MessageBox.question(self,
+            res = E5MessageBox.yesNo(self,
                 self.trUtf8("Activate task filter"),
                 self.trUtf8("""The task filter doesn't have any active filters."""
                             """ Do you want to configure the filter settings?"""),
-                QMessageBox.StandardButtons(\
-                    QMessageBox.No | \
-                    QMessageBox.Yes),
-                QMessageBox.Yes)
-            if res != QMessageBox.Yes:
+                yesDefault = True)
+            if not res:
                 on = False
             else:
                 self.__configureFilter()
@@ -808,4 +805,4 @@
         """
         Private method to open the configuration dialog.
         """
-        e5App().getObject("UserInterface").showPreferences("tasksPage")
\ No newline at end of file
+        e5App().getObject("UserInterface").showPreferences("tasksPage")

eric ide

mercurial