Skip to content

Commit

Permalink
Re #7950. Make sure variable is converted to the right type.
Browse files Browse the repository at this point in the history
It seems that the settings are stored differently on different
platforms and on linux this was reading in as a string instead of a
boolean.
  • Loading branch information
RussellTaylor committed Sep 27, 2013
1 parent 4fc018a commit 3bc3d43
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ def from_settings(self, settings):
@param settings: QSettings object
"""
self.data_path = unicode(settings.value("general_data_path", '.'))
self.debug = settings.value("debug_mode", False)
self.advanced = settings.value("advanced_mode", True)
self.debug = bool(settings.value("debug_mode", False))
self.advanced = bool(settings.value("advanced_mode", True))
self.instrument_name = unicode(settings.value("instrument_name", ''))
self.facility_name = unicode(settings.value("facility_name", ''))

0 comments on commit 3bc3d43

Please sign in to comment.