Revision: 963
http://fclient.svn.sourceforge.net/fclient/?rev=963&view=rev
Author: jUrner
Date: 2008-08-25 00:20:54 +0000 (Mon, 25 Aug 2008)
Log Message:
-----------
fix. dl key was broken
Modified Paths:
--------------
trunk/fclient/fclient/impl/ViewBrowser/ViewBrowser.py
Modified: trunk/fclient/fclient/impl/ViewBrowser/ViewBrowser.py
===================================================================
--- trunk/fclient/fclient/impl/ViewBrowser/ViewBrowser.py 2008-08-22 13:20:59 UTC (rev 962)
+++ trunk/fclient/fclient/impl/ViewBrowser/ViewBrowser.py 2008-08-25 00:20:54 UTC (rev 963)
@@ -259,10 +259,10 @@
self.trUtf8('Can not download key (key is invalid)')
)
return False
- downloadsWidget = config.ObjectRegistry.get(config.IdViewDownloadsWidget, None)
- if downloadsWidget is None:
+ voDownloads = config.ObjectRegistry.get(config.IdViewObjectDownloads, None)
+ if voDownloads is None:
raise ValueError('no downloads widget found')
- downloadsWidget.execDlgDownloadKey(fcpKey=fcpKey)
+ voDownloads.widget().execDlgDownloadKey(fcpKey=fcpKey)
return True
#########################################
@@ -542,7 +542,6 @@
browser = self.sender()
qUrl = QtCore.QUrl(qUrl)
query = unicode(qUrl.encodedQuery())
-
if query.lower() == 'forcedownload':
if not self._downloadKeyToDisk(qUrl):
self.fcGlobalFeedback.setFeedback(self.trUtf8('Invalid key!'))
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|