Helpviewer/History/HistoryManager.py

changeset 3020
542e97d4ecb3
parent 3002
6ffc581f00f1
child 3034
7ce719013078
child 3058
0a02c433f52d
diff -r 7912530a33e2 -r 542e97d4ecb3 Helpviewer/History/HistoryManager.py
--- a/Helpviewer/History/HistoryManager.py	Mon Oct 14 18:26:25 2013 +0200
+++ b/Helpviewer/History/HistoryManager.py	Mon Oct 14 19:30:36 2013 +0200
@@ -382,7 +382,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/>"""
@@ -461,7 +462,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/>"""
@@ -483,7 +485,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>."""
@@ -491,7 +494,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