changeset 95b2a5bc8c6f in /home/hg/repos/gajim
details:http://hg.gajim.org/gajim?cmd=changeset;node=95b2a5bc8c6f
description: set default value of autodetect_browser_mailer to True. Force it to True for windows
diffstat:
src/common/config.py | 2 +-
src/common/optparser.py | 4 +++-
2 files changed, 4 insertions(+), 2 deletions(-)
diffs (30 lines):
diff -r 75cb1cf6022c -r 95b2a5bc8c6f src/common/config.py
--- a/src/common/config.py Fri Sep 02 07:06:20 2011 +0200
+++ b/src/common/config.py Fri Sep 02 07:23:31 2011 +0200
@@ -185,7 +185,7 @@
'networkmanager_support': [opt_bool, True, _('If True, listen to D-Bus signals from NetworkManager and change the status of accounts (provided they do not have listen_to_network_manager set to False and they sync with global status) based upon the status of the network connection.'), True],
'outgoing_chat_state_notifications': [opt_str, 'all', _('Sent chat state notifications. Can be one of all, composing_only, disabled.')],
'displayed_chat_state_notifications': [opt_str, 'all', _('Displayed chat state notifications in chat windows. Can be one of all, composing_only, disabled.')],
- 'autodetect_browser_mailer': [opt_bool, False, '', True],
+ 'autodetect_browser_mailer': [opt_bool, True, '', True],
'print_ichat_every_foo_minutes': [opt_int, 5, _('When not printing time for every message (print_time==sometimes), print it every x minutes.')],
'confirm_close_muc': [opt_bool, True, _('Ask before closing a group chat tab/window.')],
'confirm_close_muc_rooms': [opt_str, '', _('Always ask before closing group chat tab/window in this space separated list of group chat jids.')],
diff -r 75cb1cf6022c -r 95b2a5bc8c6f src/common/optparser.py
--- a/src/common/optparser.py Fri Sep 02 07:06:20 2011 +0200
+++ b/src/common/optparser.py Fri Sep 02 07:23:31 2011 +0200
@@ -901,7 +901,7 @@
def update_config_to_01401(self):
if 'autodetect_browser_mailer' not in self.old_values or 'openwith' \
not in self.old_values or \
- (self.old_values['autodetect_browser_mailer'] == 'False' and \
+ (self.old_values['autodetect_browser_mailer'] == False and \
self.old_values['openwith'] != 'custom'):
gajim.config.set('autodetect_browser_mailer', True)
gajim.config.set('openwith', gajim.config.DEFAULT_OPENWITH)
@@ -911,3 +911,5 @@
if 'use_stun_server' in self.old_values and self.old_values[
'use_stun_server'] and not self.old_values['stun_server']:
gajim.config.set('use_stun_server', False)
+ if os.name == 'nt':
+ gajim.config.set('autodetect_browser_mailer', True)