Fix showing the remove torrent dialog twice if using the delete key and pressing cancel in the dialog

This commit is contained in:
Andrew Resch 2009-12-14 23:20:35 +00:00
parent bc27c2cdf7
commit dc9e2597da
1 changed files with 1 additions and 1 deletions

View File

@ -232,7 +232,7 @@ class TorrentView(listview.ListView, component.Component):
self.on_button_press_event)
# Connect to the 'key-press-event' to know when the bring up the
# torrent menu popup via keypress.
self.treeview.connect("key-press-event", self.on_key_press_event)
self.treeview.connect("key-release-event", self.on_key_press_event)
# Connect to the 'changed' event of TreeViewSelection to get selection
# changes.
self.treeview.get_selection().connect("changed",