mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
Work around RuntimeError in _update_button_label() (#3224)
This commit is contained in:
parent
b35742d116
commit
6d60e5a05a
1 changed files with 2 additions and 1 deletions
|
|
@ -79,7 +79,8 @@ class DeckChooser(QHBoxLayout):
|
|||
self.selected_deck_id = DEFAULT_DECK_ID
|
||||
|
||||
def _update_button_label(self) -> None:
|
||||
self.deck.setText(self.selected_deck_name().replace("&", "&&"))
|
||||
if not sip.isdeleted(self.deck):
|
||||
self.deck.setText(self.selected_deck_name().replace("&", "&&"))
|
||||
|
||||
def show(self) -> None:
|
||||
self._widget.show() # type: ignore
|
||||
|
|
|
|||
Loading…
Reference in a new issue