mirror of
https://github.com/ankitects/anki.git
synced 2025-09-24 16:56:36 -04:00
update self.card on multiple selection
fixes https://anki.tenderapp.com/discussions/beta-testing/713-anki-210-beta-13#comment_43315776
This commit is contained in:
parent
5fd9228273
commit
3b79204924
1 changed files with 4 additions and 2 deletions
|
@ -608,12 +608,14 @@ class Browser(QMainWindow):
|
|||
update = self.updateTitle()
|
||||
show = self.model.cards and update == 1
|
||||
self.form.splitter.widget(1).setVisible(not not show)
|
||||
idx = self.form.tableView.selectionModel().currentIndex()
|
||||
if idx.isValid():
|
||||
self.card = self.model.getCard(idx)
|
||||
|
||||
if not show:
|
||||
self.editor.setNote(None)
|
||||
self.singleCard = False
|
||||
else:
|
||||
self.card = self.model.getCard(
|
||||
self.form.tableView.selectionModel().currentIndex())
|
||||
self.editor.setNote(self.card.note(reload=True), focusTo=self.focusTo)
|
||||
self.focusTo = None
|
||||
self.editor.card = self.card
|
||||
|
|
Loading…
Reference in a new issue