diff options
author | Simon Schampijer <simon@schampijer.de> | 2008-10-13 14:53:30 (GMT) |
---|---|---|
committer | Simon Schampijer <simon@schampijer.de> | 2008-10-13 14:53:30 (GMT) |
commit | 6013b8a20a07f8c297ee2042fadaf921b2d93971 (patch) | |
tree | f367802195f0ca10008a00143f31b7c4af01cbb3 /src/sugar/profile.py | |
parent | 354dec9f0ca558ecc16864dc70e0995e74355eb0 (diff) |
Fix for old profile conversion
Diffstat (limited to 'src/sugar/profile.py')
-rw-r--r-- | src/sugar/profile.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sugar/profile.py b/src/sugar/profile.py index 301903f..2d5a88e 100644 --- a/src/sugar/profile.py +++ b/src/sugar/profile.py @@ -154,8 +154,8 @@ class Profile(object): backup1 = cp.get('Server', 'Backup1') client.set_string("/desktop/sugar/backup_url", backup1) if cp.has_option('Sound', 'Volume'): - volume = int(cp.get('Sound', 'Volume')) - client.set_int("/desktop/sugar/sound/volume", volume) + volume = float(cp.get('Sound', 'Volume')) + client.set_int("/desktop/sugar/sound/volume", int(volume)) if cp.has_option('Power', 'AutomaticPM'): state = cp.get('Power', 'AutomaticPM') if state.lower() == "true": |