mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 08:46:37 -04:00
proper fix for preview window's 'please select 1 card' message
setting self.card to None caused the following: https://anki.tenderapp.com/discussions/beta-testing/661-anki-210-beta-7#comment_43180378
This commit is contained in:
parent
06fcccaf44
commit
9af28b7159
1 changed files with 1 additions and 2 deletions
|
@ -627,7 +627,6 @@ class Browser(QMainWindow):
|
|||
if not show:
|
||||
self.editor.setNote(None)
|
||||
self.singleCard = False
|
||||
self.card = None
|
||||
else:
|
||||
self.card = self.model.getCard(
|
||||
self.form.tableView.selectionModel().currentIndex())
|
||||
|
@ -1147,7 +1146,7 @@ where id in %s""" % ids2str(sf))
|
|||
return
|
||||
c = self.card
|
||||
self._updatePreviewButtons()
|
||||
if not c:
|
||||
if not c or not self.singleCard:
|
||||
txt = _("(please select 1 card)")
|
||||
bodyclass = ""
|
||||
else:
|
||||
|
|
Loading…
Reference in a new issue