From 29aaf401c3a95f64d14c076eeef736e46285a55d Mon Sep 17 00:00:00 2001 From: MrS0m30n3 Date: Fri, 4 Nov 2016 23:17:41 +0200 Subject: [PATCH] Use 'get_next_selected' method --- youtube_dl_gui/mainframe.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube_dl_gui/mainframe.py b/youtube_dl_gui/mainframe.py index 6b158a4..d151b7e 100644 --- a/youtube_dl_gui/mainframe.py +++ b/youtube_dl_gui/mainframe.py @@ -548,7 +548,7 @@ class MainFrame(wx.Frame): self._create_popup("Item is not completed", self.INFO_LABEL, wx.OK | wx.ICON_INFORMATION) def _on_arrow_up(self, event): - index = self._status_list.GetFirstSelected() + index = self._status_list.get_next_selected() if index == -1: self._create_popup("No row selected", self.ERROR_LABEL, wx.OK | wx.ICON_EXCLAMATION) @@ -566,7 +566,7 @@ class MainFrame(wx.Frame): self._status_list.move_item_up(index) self._status_list._update_from_item(new_index, download_item) - index = self._status_list.GetNextSelected(index) + index = self._status_list.get_next_selected(index) print self._download_list._items_list