prevent deck chooser from becoming default

Qt's behaviour seems to have changed in move to 5.12
This commit is contained in:
Damien Elmes 2019-05-15 14:50:55 +10:00
parent 7aba268d7a
commit 86d9b57877

View File

@ -27,6 +27,7 @@ class DeckChooser(QHBoxLayout):
self.addWidget(self.deckLabel)
# decks box
self.deck = QPushButton(clicked=self.onDeckChange)
self.deck.setAutoDefault(False)
self.deck.setToolTip(shortcut(_("Target Deck (Ctrl+D)")))
s = QShortcut(QKeySequence(_("Ctrl+D")), self.widget, activated=self.onDeckChange)
self.addWidget(self.deck)