don't move cards if they're in a temporary deck

This commit is contained in:
Damien Elmes 2012-03-12 13:54:05 +09:00
parent e4860b1b7f
commit a56cede50c

View file

@ -901,8 +901,8 @@ where id in %s""" % ids2str(sf))
mod = intTime()
usn = self.col.usn()
did = self.col.decks.id(unicode(te.text()))
self.col.db.execute(
"update cards set usn=?, mod=?, did=? where id in " + ids2str(
self.col.db.execute("""
update cards set usn=?, mod=?, did=? where odid=0 and id in """ + ids2str(
self.selectedCards()), usn, mod, did)
self.onSearch(reset=False)
self.mw.requireReset()