Helpviewer/History/HistoryMenu.py

changeset 7
c679fb30c8f3
parent 0
de9c2efb9d02
child 12
1d8dd9706f46
--- a/Helpviewer/History/HistoryMenu.py	Mon Dec 28 18:31:37 2009 +0000
+++ b/Helpviewer/History/HistoryMenu.py	Wed Dec 30 15:40:33 2009 +0000
@@ -192,7 +192,7 @@
         """
         urls = []
         for index in indexes:
-            url = index.data(HistoryModel.UrlRole).toUrl()
+            url = index.data(HistoryModel.UrlRole)
             urls.append(url)
         
         mdata = QMimeData()
@@ -232,12 +232,12 @@
         """
         if self._keyboardModifiers & Qt.ControlModifier:
             self.emit(SIGNAL("newUrl(const QUrl&, const QString&)"), 
-                      idx.data(HistoryModel.UrlRole).toUrl(), 
-                      idx.data(HistoryModel.TitleRole).toString())
+                      idx.data(HistoryModel.UrlRole), 
+                      idx.data(HistoryModel.TitleRole))
         else:
             self.emit(SIGNAL("openUrl(const QUrl&, const QString&)"), 
-                      idx.data(HistoryModel.UrlRole).toUrl(), 
-                      idx.data(HistoryModel.TitleRole).toString())
+                      idx.data(HistoryModel.UrlRole), 
+                      idx.data(HistoryModel.TitleRole))
     
     def prePopulated(self):
         """

eric ide

mercurial