Use actions instead of widgets for setting focus on board view

widgets where removed on changeset 4daf166b0d41
issue5586
review22031002
This commit is contained in:
Sergi Almacellas Abellana committed 2016-06-01 17:52:46 +02:00
1 parent 294ec4efc6
commit c513d97512
1 file changed
+3 -5
+3 -5
View File
@@ -85,9 +85,7 @@ class Board(SignalEvent, TabContent):
Main.get_main().sig_win_close(widget)
def set_cursor(self):
if not self.board.widgets:
if not self.board.actions:
return
first_widget = self.board.widgets[0]
# only Actions are added to self.board.widgets, so no need to test
# further
first_widget.screen.set_cursor()
first_action = self.board.actions[0]
first_action.screen.set_cursor()