Skip to content

Commit

Permalink
Move default focus away from deck chooser
Browse files Browse the repository at this point in the history
  • Loading branch information
glutanimate committed Jan 20, 2017
1 parent d7b4bd5 commit 7ef6d72
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions image_occlusion_enhanced/dialogs.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ def setupUi(self):
self.deck_container = QWidget()
self.deckChooser = deckchooser.DeckChooser(mw,
self.deck_container, label=True)
self.deckChooser.deck.setAutoDefault(False)

# workaround for tab focus order issue of the tags entry
# (this particular section is only needed when the quick deck
Expand All @@ -73,6 +74,7 @@ def setupUi(self):
item = self.deck_container.layout().children()[0].itemAt(i)
# remove Tab focus manually:
item.widget().setFocusPolicy(Qt.ClickFocus)
item.widget().setAutoDefault(False)


# Button row widgets
Expand Down

0 comments on commit 7ef6d72

Please sign in to comment.