UI/DiffDialog.py

changeset 537
72b32daeb8d6
parent 500
c3abc7895a01
child 539
87f9bce38a44
--- a/UI/DiffDialog.py	Mon Aug 30 20:16:34 2010 +0200
+++ b/UI/DiffDialog.py	Tue Aug 31 12:17:02 2010 +0200
@@ -14,6 +14,7 @@
 from PyQt4.QtGui import *
 
 from E5Gui.E5Completers import E5FileCompleter
+from E5Gui import E5MessageBox
 
 from .Ui_DiffDialog import Ui_DiffDialog
 import Utilities
@@ -306,7 +307,7 @@
                 pass
             f.close()
         except IOError as why:
-            QMessageBox.critical(self, self.trUtf8('Save Diff'),
+            E5MessageBox.critical(self, self.trUtf8('Save Diff'),
                 self.trUtf8('<p>The patch file <b>{0}</b> could not be saved.<br />'
                             'Reason: {1}</p>')
                     .format(fname, str(why)))
@@ -326,7 +327,7 @@
             lines1 = f1.readlines()
             f1.close()
         except IOError:
-            QMessageBox.critical(self,
+            E5MessageBox.critical(self,
                 self.trUtf8("Compare Files"),
                 self.trUtf8("""<p>The file <b>{0}</b> could not be read.</p>""")
                     .format(self.filename1))
@@ -342,7 +343,7 @@
             lines2 = f2.readlines()
             f2.close()
         except IOError:
-            QMessageBox.critical(self,
+            E5MessageBox.critical(self,
                 self.trUtf8("Compare Files"),
                 self.trUtf8("""<p>The file <b>{0}</b> could not be read.</p>""")
                     .format(self.filename2))
@@ -511,4 +512,4 @@
             QApplication.exit()
             return True
         
-        return False
+        return False
\ No newline at end of file

eric ide

mercurial