Helpviewer/ClosedTabsManager.py

changeset 5653
c023821bb25f
parent 5389
9b1c800daff3
child 6048
82ad8ec9548c
diff -r d1b65f380408 -r c023821bb25f Helpviewer/ClosedTabsManager.py
--- a/Helpviewer/ClosedTabsManager.py	Wed Mar 22 18:56:25 2017 +0100
+++ b/Helpviewer/ClosedTabsManager.py	Wed Mar 22 19:59:45 2017 +0100
@@ -17,7 +17,7 @@
     """
     Class implementing a structure to store data about a closed tab.
     """
-    def __init__(self, url=QUrl(), title="", position=-1):
+    def __init__(self, url=None, title="", position=-1):
         """
         Constructor
         
@@ -25,7 +25,7 @@
         @param title title of the closed tab (string)
         @param position index of the closed tab (integer)
         """
-        self.url = url
+        self.url = QUrl() if url is None else QUrl(url)
         self.title = title
         self.position = position
     

eric ide

mercurial