use the saved size even if a chat window is already opened

This commit is contained in:
Yann Leboulanger 2006-01-06 18:14:14 +00:00
parent e852c9a2b0
commit 507fae1ccb
1 changed files with 6 additions and 5 deletions

View File

@ -84,11 +84,12 @@ class TabbedChatWindow(chat.Chat):
self.xml.signal_autoconnect(signal_dict)
if gajim.config.get('saveposition') and \
not gtkgui_helpers.one_window_opened('chats'):
if gajim.config.get('saveposition'):
if gtkgui_helpers.one_window_opened('chats'):
# get window position and size from config
gtkgui_helpers.move_window(self.window, gajim.config.get('chat-x-position'),
gajim.config.get('chat-y-position'))
# Even if one is already opened we can use the saved size
gtkgui_helpers.resize_window(self.window, gajim.config.get('chat-width'),
gajim.config.get('chat-height'))