leech action is no longer an array

This commit is contained in:
Damien Elmes 2011-04-24 12:22:46 +09:00
parent e28f5fe931
commit cfefbc92ad

View file

@ -56,7 +56,7 @@ class GroupConf(QDialog):
f.lapMult.setValue(c['mult']*100) f.lapMult.setValue(c['mult']*100)
f.lapMinInt.setValue(c['minInt']) f.lapMinInt.setValue(c['minInt'])
f.leechThreshold.setValue(c['leechFails']) f.leechThreshold.setValue(c['leechFails'])
f.leechAction.setCurrentIndex(c['leechAction'][0]) f.leechAction.setCurrentIndex(c['leechAction'])
f.lapRelearn.setChecked(c['relearn']) f.lapRelearn.setChecked(c['relearn'])
# rev # rev
c = self.conf['rev'] c = self.conf['rev']
@ -113,7 +113,7 @@ class GroupConf(QDialog):
c['mult'] = f.lapMult.value()/100.0 c['mult'] = f.lapMult.value()/100.0
c['minInt'] = f.lapMinInt.value() c['minInt'] = f.lapMinInt.value()
c['leechFails'] = f.leechThreshold.value() c['leechFails'] = f.leechThreshold.value()
c['leechAction'][0] = f.leechAction.currentIndex() c['leechAction'] = f.leechAction.currentIndex()
c['relearn'] = f.lapRelearn.isChecked() c['relearn'] = f.lapRelearn.isChecked()
# rev # rev
c = self.conf['rev'] c = self.conf['rev']