Preferences/ShortcutsDialog.py

changeset 539
87f9bce38a44
parent 500
c3abc7895a01
child 541
00e1a5d060c5
diff -r 7f1a56e80124 -r 87f9bce38a44 Preferences/ShortcutsDialog.py
--- a/Preferences/ShortcutsDialog.py	Tue Aug 31 12:36:10 2010 +0200
+++ b/Preferences/ShortcutsDialog.py	Tue Aug 31 13:23:27 2010 +0200
@@ -11,6 +11,7 @@
 from PyQt4.QtGui import *
 
 from E5Gui.E5Application import e5App
+from E5Gui import E5MessageBox
 
 from .Ui_ShortcutsDialog import Ui_ShortcutsDialog
 from .ShortcutDialog import ShortcutDialog
@@ -292,7 +293,7 @@
                         itmseq = itm.text(col)
                         # step 1: check if shortcut is already allocated
                         if keystr == itmseq:
-                            res = QMessageBox.warning(None,
+                            res = E5MessageBox.warning(self,
                                 self.trUtf8("Edit shortcuts"),
                                 self.trUtf8(\
                                     """<p><b>{0}</b> has already been allocated"""
@@ -314,7 +315,7 @@
                         
                         # step 2: check if shortcut hides an already allocated
                         if itmseq.startswith("{0}+".format(keystr)):
-                            res = QMessageBox.warning(None,
+                            res = E5MessageBox.warning(self,
                                 self.trUtf8("Edit shortcuts"),
                                 self.trUtf8(\
                                     """<p><b>{0}</b> hides the <b>{1}</b> action. """
@@ -332,7 +333,7 @@
                         
                         # step 3: check if shortcut is hidden by an already allocated
                         if keystr.startswith("{0}+".format(itmseq)):
-                            res = QMessageBox.warning(None,
+                            res = E5MessageBox.warning(self,
                                 self.trUtf8("Edit shortcuts"),
                                 self.trUtf8(\
                                     """<p><b>{0}</b> is hidden by the """
@@ -461,4 +462,4 @@
         @param checked state of the shortcuts radio button (boolean)
         """
         if checked:
-            self.on_searchEdit_textChanged(self.searchEdit.text())
+            self.on_searchEdit_textChanged(self.searchEdit.text())
\ No newline at end of file

eric ide

mercurial