mirror of
https://github.com/ankitects/anki.git
synced 2025-09-19 06:22:22 -04:00
don't clobber order when checking for new cards in reposition
This commit is contained in:
parent
ea294ed47b
commit
05a6671816
1 changed files with 2 additions and 2 deletions
|
@ -1000,9 +1000,9 @@ update cards set usn=?, mod=?, did=? where odid=0 and id in """ + ids2str(
|
|||
|
||||
def reposition(self):
|
||||
cids = self.selectedCards()
|
||||
cids = self.col.db.list(
|
||||
cids2 = self.col.db.list(
|
||||
"select id from cards where type = 0 and id in " + ids2str(cids))
|
||||
if not cids:
|
||||
if not cids2:
|
||||
return showInfo(_("Only new cards can be repositioned."))
|
||||
d = QDialog(self)
|
||||
d.setWindowModality(Qt.WindowModal)
|
||||
|
|
Loading…
Reference in a new issue