[aldafu] quit_on_roster_x_button advanced setting [I reverted logic]

This commit is contained in:
Nikos Kouremenos 2005-09-04 18:38:25 +00:00
parent 6bd154e1e7
commit 8377bdb54b
2 changed files with 2 additions and 1 deletions

View File

@ -146,6 +146,7 @@ class Config:
'tabs_close_button': [opt_bool, True, _('Show close button in tab?')],
'avatar_width': [opt_int, 52],
'avatar_height': [opt_int, 52],
'quit_on_roster_x_button': [opt_bool, False, _('If True, quits Gajim when X button of Window Manager is clicked. This option make sense only if trayicon is used')],
}
__options_per_key = {

View File

@ -1505,7 +1505,7 @@ _('If "%s" accepts this request you will know his status.') %jid)
def on_roster_window_delete_event(self, widget, event):
'''When we want to close the window'''
if self.plugin.systray_enabled:
if self.plugin.systray_enabled and not gajim.config.get('quit_on_roster_x_button'):
self.tooltip.hide_tooltip()
self.window.hide()
else: