Helpviewer/History/HistoryManager.py

branch
Py2 comp.
changeset 3058
0a02c433f52d
parent 3057
10516539f238
parent 3020
542e97d4ecb3
child 3060
5883ce99ee12
diff -r 10516539f238 -r 0a02c433f52d Helpviewer/History/HistoryManager.py
--- a/Helpviewer/History/HistoryManager.py	Fri Oct 18 23:00:41 2013 +0200
+++ b/Helpviewer/History/HistoryManager.py	Fri Nov 01 15:48:48 2013 +0100
@@ -384,7 +384,8 @@
         if not historyFile.exists():
             return
         if not historyFile.open(QIODevice.ReadOnly):
-            E5MessageBox.warning(None,
+            E5MessageBox.warning(
+                None,
                 self.trUtf8("Loading History"),
                 self.trUtf8(
                     """<p>Unable to open history file <b>{0}</b>.<br/>"""
@@ -463,7 +464,8 @@
             opened = f.open(QIODevice.Append)
         
         if not opened:
-            E5MessageBox.warning(None,
+            E5MessageBox.warning(
+                None,
                 self.trUtf8("Saving History"),
                 self.trUtf8(
                     """<p>Unable to open history file <b>{0}</b>.<br/>"""
@@ -485,7 +487,8 @@
         f.close()
         if saveAll:
             if historyFile.exists() and not historyFile.remove():
-                E5MessageBox.warning(None,
+                E5MessageBox.warning(
+                    None,
                     self.trUtf8("Saving History"),
                     self.trUtf8(
                         """<p>Error removing old history file <b>{0}</b>."""
@@ -493,7 +496,8 @@
                         .format(historyFile.fileName(),
                                 historyFile.errorString()))
             if not f.copy(historyFile.fileName()):
-                E5MessageBox.warning(None,
+                E5MessageBox.warning(
+                    None,
                     self.trUtf8("Saving History"),
                     self.trUtf8(
                         """<p>Error moving new history file over old one """

eric ide

mercurial