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:25:03 +00:00
parent cc3f3495b6
commit 52817498cf

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",