UI/UserInterface.py

changeset 541
00e1a5d060c5
parent 539
87f9bce38a44
child 543
a558e3cb7b5a
--- a/UI/UserInterface.py	Tue Aug 31 13:39:24 2010 +0200
+++ b/UI/UserInterface.py	Tue Aug 31 16:38:06 2010 +0200
@@ -2781,9 +2781,12 @@
         if Preferences.getUI("CheckErrorLog"):
             logFile = os.path.join(Utilities.getConfigDir(), "eric5_error.log")
             if os.path.exists(logFile):
-                dlg = QMessageBox(QMessageBox.Question, self.trUtf8("Error log found"), 
+                dlg = QMessageBox(QMessageBox.Question, 
+                    self.trUtf8("Error log found"), 
                     self.trUtf8("An error log file was found. "
                                 "What should be done with it?"))
+                dlg.setParent(self)
+                dlg.setWindowModality(Qt.WindowModal)
                 try:
                     f = open(logFile, "r", encoding = "utf-8")
                     txt = f.read()
@@ -5698,4 +5701,4 @@
         if self.__startup:
             if Preferences.getGeometry("MainMaximized"):
                 self.setWindowState(Qt.WindowStates(Qt.WindowMaximized))
-            self.__startup = False
\ No newline at end of file
+            self.__startup = False

eric ide

mercurial