Fixed the forgotten __open() method in DownloadItem.py.

Sat, 29 Jan 2011 16:53:23 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 29 Jan 2011 16:53:23 +0100
changeset 867
d6cafe8ad013
parent 866
278734f0b0ea
child 868
811e5cc7de6c

Fixed the forgotten __open() method in DownloadItem.py.

Helpviewer/Download/DownloadItem.py file | annotate | diff | comparison | revisions
diff -r 278734f0b0ea -r d6cafe8ad013 Helpviewer/Download/DownloadItem.py
--- a/Helpviewer/Download/DownloadItem.py	Sat Jan 29 11:41:19 2011 +0100
+++ b/Helpviewer/Download/DownloadItem.py	Sat Jan 29 16:53:23 2011 +0100
@@ -247,6 +247,14 @@
             i += 1
         return name
     
+    def __open(self):
+        """
+        Private slot to open the downloaded file.
+        """
+        info = QFileInfo(self.__output)
+        url = QUrl.fromLocalFile(info.absoluteFilePath())
+        QDesktopServices.openUrl(url)
+    
     @pyqtSlot()
     def on_tryAgainButton_clicked(self):
         """

eric ide

mercurial