--- a/Plugins/PluginWizardPyRegExp.py Mon Aug 30 20:16:34 2010 +0200 +++ b/Plugins/PluginWizardPyRegExp.py Tue Aug 31 12:17:02 2010 +0200 @@ -8,10 +8,11 @@ """ from PyQt4.QtCore import QObject -from PyQt4.QtGui import QDialog, QMessageBox +from PyQt4.QtGui import QDialog from E5Gui.E5Application import e5App from E5Gui.E5Action import E5Action +from E5Gui import E5MessageBox from WizardPlugins.PyRegExpWizard.PyRegExpWizardDialog import \ PyRegExpWizardDialog @@ -116,7 +117,7 @@ editor = e5App().getObject("ViewManager").activeWindow() if editor == None: - QMessageBox.critical(None, + E5MessageBox.critical(self.__ui, self.trUtf8('No current editor'), self.trUtf8('Please open or create a file first.')) else: