about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPaweł Jastrzębski <pawelj@vulturis.eu>2013-12-28 09:06:10 +0100
committerPaweł Jastrzębski <pawelj@vulturis.eu>2013-12-28 09:06:10 +0100
commit72132ea90899fc8d1e94b2388a43631c9eeffdfe (patch)
tree1c7ab62fd9f3e23069b98e9eedbcf6ff8c4c36f1
parentFixed PDF queue (close #73) (diff)
downloadkcc-72132ea90899fc8d1e94b2388a43631c9eeffdfe.tar.gz
kcc-72132ea90899fc8d1e94b2388a43631c9eeffdfe.tar.bz2
kcc-72132ea90899fc8d1e94b2388a43631c9eeffdfe.zip
GUI: Tweaked profile logic
-rw-r--r--kcc/KCC_gui.py12
1 files changed, 8 insertions, 4 deletions
diff --git a/kcc/KCC_gui.py b/kcc/KCC_gui.py
index 0e4df22..e0cf643 100644
--- a/kcc/KCC_gui.py
+++ b/kcc/KCC_gui.py
@@ -837,14 +837,18 @@ class KCCGUI(KCC_ui.Ui_KCC):
                 else:
                     tmpFormat = 0
                 GUI.FormatBox.setCurrentIndex(tmpFormat)
-        GUI.MangaBox.setChecked(False)
-        GUI.QualityBox.setChecked(False)
         if str(GUI.FormatBox.currentText()) == 'CBZ':
             GUI.MangaBox.setEnabled(False)
             GUI.QualityBox.setEnabled(False)
+            GUI.MangaBox.setChecked(False)
+            GUI.QualityBox.setChecked(False)
         else:
             GUI.MangaBox.setEnabled(profile['MangaMode'])
+            if not profile['MangaMode']:
+                GUI.MangaBox.setChecked(False)
             GUI.QualityBox.setEnabled(profile['Quality'])
+            if not profile['Quality']:
+                GUI.QualityBox.setChecked(False)
 
     def stripTags(self, html):
         s = HTMLStripper()
@@ -1165,6 +1169,8 @@ class KCCGUI(KCC_ui.Ui_KCC):
             self.currentFormat = 0
         GUI.DeviceBox.setCurrentIndex(self.lastDevice)
         self.changeDevice()
+        if self.currentFormat != self.profiles[str(GUI.DeviceBox.currentText())]['DefaultFormat']:
+            self.changeFormat(self.currentFormat)
         for option in self.options:
             if str(option) == "customWidth":
                 GUI.customWidth.setText(str(self.options[option]))
@@ -1177,8 +1183,6 @@ class KCCGUI(KCC_ui.Ui_KCC):
             else:
                 if eval('GUI.' + str(option)).isEnabled():
                     eval('GUI.' + str(option)).setCheckState(self.options[option])
-        if self.currentFormat != self.profiles[str(GUI.DeviceBox.currentText())]['DefaultFormat']:
-            self.changeFormat(self.currentFormat)
 
         self.versionCheck.start()
         self.contentServer.start()