mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
don't die in editor if there's no current card
This commit is contained in:
parent
fb4460c0ec
commit
8180996c16
1 changed files with 2 additions and 1 deletions
|
@ -236,7 +236,8 @@ class EditDeck(QMainWindow):
|
|||
restoreSplitter(self.dialog.splitter, "editor")
|
||||
self.show()
|
||||
self.updateSearch()
|
||||
self.currentCard = self.parent.currentCard
|
||||
if self.parent.currentCard:
|
||||
self.currentCard = self.parent.currentCard
|
||||
self.focusCurrentCard()
|
||||
|
||||
def findCardInDeckModel(self, model, card):
|
||||
|
|
Loading…
Reference in a new issue