E5Gui/E5ToolBarDialog.py

changeset 537
72b32daeb8d6
parent 535
4b00d7336e19
child 538
7f1a56e80124
--- a/E5Gui/E5ToolBarDialog.py	Mon Aug 30 20:16:34 2010 +0200
+++ b/E5Gui/E5ToolBarDialog.py	Tue Aug 31 12:17:02 2010 +0200
@@ -10,6 +10,8 @@
 from PyQt4.QtGui import *
 from PyQt4.QtCore import *
 
+from E5Gui import E5MessageBox
+
 from .Ui_E5ToolBarDialog import Ui_E5ToolBarDialog
 
 import UI.PixmapCache
@@ -126,7 +128,7 @@
         if ok and name:
             if self.toolbarComboBox.findText(name) != -1:
                 # toolbar with this name already exists
-                QMessageBox.critical(self,
+                E5MessageBox.critical(self,
                 self.trUtf8("New Toolbar"),
                 self.trUtf8("""A toolbar with the name <b>{0}</b> already exists.""")\
                     .format(name))
@@ -185,7 +187,7 @@
                 return
             if self.toolbarComboBox.findText(newName) != -1:
                 # toolbar with this name already exists
-                QMessageBox.critical(self,
+                E5MessageBox.critical(self,
                 self.trUtf8("Rename Toolbar"),
                 self.trUtf8("""A toolbar with the name <b>{0}</b> already exists.""")\
                     .format(newName))
@@ -454,4 +456,4 @@
         tbID = self.__currentToolBarItem.toolBarId
         actions = self.__manager.defaultToolBarActions(tbID)
         self.__restoreCurrentToolbar(actions)
-        self.__currentToolBarItem.isChanged = True
+        self.__currentToolBarItem.isChanged = True
\ No newline at end of file

eric ide

mercurial