don't accidentally reset lastSync

This commit is contained in:
Damien Elmes 2010-12-06 06:12:12 +09:00
parent 01c6ca6776
commit 43e02439f1

View file

@ -160,9 +160,13 @@ class DeckProperties(QDialog):
# syncing
if self.dialog.doSync.checkState() == Qt.Checked:
old = self.d.syncName
oldSync = self.d.lastSync
self.d.enableSyncing()
if self.d.syncName != old:
needSync = True
else:
# put it back
self.d.lastSync = oldSync
else:
self.d.disableSyncing()
# scheduling