SF.net SVN: fclient:[882] trunk/fclient/fclient/impl/ViewDownloads.py
Status: Pre-Alpha
Brought to you by:
jurner
From: <jU...@us...> - 2008-08-09 11:23:23
|
Revision: 882 http://fclient.svn.sourceforge.net/fclient/?rev=882&view=rev Author: jUrner Date: 2008-08-09 11:23:32 +0000 (Sat, 09 Aug 2008) Log Message: ----------- removing items is still a bit tricky Modified Paths: -------------- trunk/fclient/fclient/impl/ViewDownloads.py Modified: trunk/fclient/fclient/impl/ViewDownloads.py =================================================================== --- trunk/fclient/fclient/impl/ViewDownloads.py 2008-08-09 11:22:54 UTC (rev 881) +++ trunk/fclient/fclient/impl/ViewDownloads.py 2008-08-09 11:23:32 UTC (rev 882) @@ -391,7 +391,8 @@ for item in selectedItems: for tmp_item in treewidgetwrap.walkItem(item): if tmp_item.fcpRequest is not None: # we may come across the same item multiple times - del self.fcpRequests[tmp_item.fcpRequest['Identifier']] + if tmp_item.fcpRequest['Identifier'] in self.fcpRequests: #TODO: should never be False?! check + del self.fcpRequests[tmp_item.fcpRequest['Identifier']] config.fcpClient.removeRequest(tmp_item.fcpRequest) tmp_item.fcpRequest = None This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |