From 52817498cf58f4ad3f524e821ccf764c5ce1c7be Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Mon, 14 Dec 2009 23:25:03 +0000 Subject: [PATCH] Fix showing the remove torrent dialog twice if using the delete key and pressing cancel in the dialog --- deluge/ui/gtkui/torrentview.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deluge/ui/gtkui/torrentview.py b/deluge/ui/gtkui/torrentview.py index d0b125a05..b2b64fa7b 100644 --- a/deluge/ui/gtkui/torrentview.py +++ b/deluge/ui/gtkui/torrentview.py @@ -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",