Edited configuration interface

* changed (bool == 1) to (bool > 0)
This commit is contained in:
arcan1s
2013-10-03 00:18:29 +04:00
parent d8a9ca1fe6
commit 7aabdf9485
7 changed files with 1196 additions and 1176 deletions

View File

@ -43,7 +43,7 @@ class ConfigWindow(QWidget):
"""function to enable label"""
count = self.sliders['bat'].maximum()
for label in self.checkboxes.keys():
if ((self.checkboxes[label].checkState() == 2) and (self.sliders[label].isEnabled() == False)):
if ((self.checkboxes[label].checkState() > 0) and (self.sliders[label].isEnabled() == False)):
self.lineedits[label].setEnabled(True)
self.sliders[label].setEnabled(True)
if (label == 'bat'):