Fix showing the remove torrent dialog twice if using the delete key and pressing cancel in the dialog
This commit is contained in:
parent
bc27c2cdf7
commit
dc9e2597da
|
@ -232,7 +232,7 @@ class TorrentView(listview.ListView, component.Component):
|
||||||
self.on_button_press_event)
|
self.on_button_press_event)
|
||||||
# Connect to the 'key-press-event' to know when the bring up the
|
# Connect to the 'key-press-event' to know when the bring up the
|
||||||
# torrent menu popup via keypress.
|
# 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
|
# Connect to the 'changed' event of TreeViewSelection to get selection
|
||||||
# changes.
|
# changes.
|
||||||
self.treeview.get_selection().connect("changed",
|
self.treeview.get_selection().connect("changed",
|
||||||
|
|
Loading…
Reference in New Issue