diff --git a/src/files.py b/src/files.py index 925397217..d93f24e7a 100644 --- a/src/files.py +++ b/src/files.py @@ -122,11 +122,11 @@ class FilesBaseManager(object): if data is None: return True - path, col, cellx, celly = data + path = data[0] is_selected = self.file_view.get_selection().path_is_selected(path) if not is_selected: self.file_view.grab_focus() - self.file_view.set_cursor(path, col, 0) + self.file_view.set_cursor(path) self.file_menu.popup(None, None, None, event.button, event.time) return is_selected diff --git a/src/interface.py b/src/interface.py index c1c412b01..a0f33df60 100644 --- a/src/interface.py +++ b/src/interface.py @@ -632,11 +632,12 @@ class DelugeGTK: int(event.y)) if data is None: return True - path, col, cellx, celly = data + + path = data[0] is_selected = self.torrent_view.get_selection().path_is_selected(path) if not is_selected: self.torrent_view.grab_focus() - self.torrent_view.set_cursor(path, col, 0) + self.torrent_view.set_cursor(path) self.torrent_menu.popup(None, None, None, event.button, event.time)