mirror of
https://github.com/ankitects/anki.git
synced 2025-09-23 08:22:24 -04:00
flagging requires a current card
https://anki.tenderapp.com/discussions/ankidesktop/37324-bug-report
This commit is contained in:
parent
0df937061e
commit
b1267028e3
1 changed files with 2 additions and 0 deletions
|
@ -1593,6 +1593,8 @@ update cards set usn=?, mod=?, did=? where id in """ + scids,
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
def onSetFlag(self, n):
|
def onSetFlag(self, n):
|
||||||
|
if not self.card:
|
||||||
|
return
|
||||||
# flag needs toggling off?
|
# flag needs toggling off?
|
||||||
if n == self.card.userFlag():
|
if n == self.card.userFlag():
|
||||||
n = 0
|
n = 0
|
||||||
|
|
Loading…
Reference in a new issue