Helpviewer/Bookmarks/AddBookmarkDialog.py

branch
Py2 comp.
changeset 2525
8b507a9a2d40
parent 2403
e3d7a861547c
child 3057
10516539f238
--- a/Helpviewer/Bookmarks/AddBookmarkDialog.py	Sun Mar 24 13:52:12 2013 +0100
+++ b/Helpviewer/Bookmarks/AddBookmarkDialog.py	Mon Mar 25 03:11:06 2013 +0100
@@ -7,6 +7,8 @@
 Module implementing a dialog to add a bookmark or a bookmark folder.
 """
 
+from __future__ import unicode_literals    # __IGNORE_WARNING__
+
 from PyQt4.QtCore import QModelIndex
 from PyQt4.QtGui import QSortFilterProxyModel, QDialog, QTreeView
 
@@ -23,7 +25,7 @@
         
         @param parent reference to the parent object (QObject)
         """
-        super().__init__(parent)
+        super(AddBookmarkProxyModel, self).__init__(parent)
     
     def columnCount(self, parent):
         """
@@ -78,7 +80,7 @@
         @param bookmarksManager reference to the bookmarks manager
             object (BookmarksManager)
         """
-        super().__init__(parent)
+        super(AddBookmarkDialog, self).__init__(parent)
         self.setupUi(self)
         
         self.__bookmarksManager = bookmarksManager
@@ -219,7 +221,7 @@
         """
         if (not self.__addFolder and not self.addressEdit.text()) or \
            not self.nameEdit.text():
-            super().accept()
+            super(AddBookmarkDialog, self).accept()
             return
         
         from .BookmarkNode import BookmarkNode
@@ -242,4 +244,4 @@
         self.__bookmarksManager.addBookmark(parent, bookmark)
         self.__addedNode = bookmark
         
-        super().accept()
+        super(AddBookmarkDialog, self).accept()

eric ide

mercurial