From 88fe4f8e3696c6e290d299e89f274f6935a65264 Mon Sep 17 00:00:00 2001
From: Yann Leboulanger <asterix@lagaule.org>
Date: Thu, 27 Aug 2009 20:09:57 +0200
Subject: [PATCH] prevent traceback when there are unread message on startup

---
 src/gajim.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/gajim.py b/src/gajim.py
index 085c7cbc4d..928045293a 100644
--- a/src/gajim.py
+++ b/src/gajim.py
@@ -3445,13 +3445,13 @@ class Interface:
 		# set the icon to all windows
 		gtk.window_set_default_icon(pix)
 
+		self.init_emoticons()
+		self.make_regexps()
+
 		self.roster = roster_window.RosterWindow()
 		for account in gajim.connections:
 			gajim.connections[account].load_roster_from_db()
 
-		self.init_emoticons()
-		self.make_regexps()
-
 		# get instances for windows/dialogs that will show_all()/hide()
 		self.instances['file_transfers'] = dialogs.FileTransfersWindow()
 
-- 
GitLab