diff PreferencesDialog.py @ 46:03358c113170

Better preferences handling: the GUI's responsibility is to convert the input from the event into a boolean value
author Dirk Olmes <dirk@xanthippe.ping.de>
date Sun, 16 May 2010 07:54:24 +0200
parents be990ac6e478
children db35ab7753f0
line wrap: on
line diff
--- a/PreferencesDialog.py	Fri May 14 15:24:51 2010 +0200
+++ b/PreferencesDialog.py	Sun May 16 07:54:24 2010 +0200
@@ -17,7 +17,10 @@
         self.ui.startMaximized.setChecked(maximized)
 
     def startMaximizedChanged(self, change):
-        self.preferences.setStartMaximized(change)
+        if change:
+            self.preferences.setStartMaximized(True)
+        else:
+            self.preferences.setStartMaximized(False)
 
     def accept(self):
         self.session.commit()