don't save position if show_roster_on_start is

False and roster is never shown
This commit is contained in:
Dimitur Kirov 2005-09-09 14:56:14 +00:00
parent d9e95eceeb
commit 5aec18639d
1 changed files with 9 additions and 6 deletions

View File

@ -1552,6 +1552,9 @@ _('If "%s" accepts this request you will know his status.') %jid)
'''When we quit the gtk plugin :
tell that to the core and exit gtk'''
if gajim.config.get('saveposition'):
# in case show_roster_on_start is False and roster is never shown
# window.window is None
if self.window.window is not None:
x, y = self.window.window.get_root_origin()
gajim.config.set('roster_x-position', x)
gajim.config.set('roster_y-position', y)