Welcome to mirror list, hosted at ThFree Co, Russian Federation.

dev.gajim.org/gajim/gajim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYann Leboulanger <asterix@lagaule.org>2009-11-27 01:00:57 +0300
committerYann Leboulanger <asterix@lagaule.org>2009-11-27 01:00:57 +0300
commit1e616c5412f2470b112854c49926a92915237d24 (patch)
treeb293bc0093f7a56353bdf3db4505a826534ca0d0
parentb062da6c3e419c6bc428685a1cd48fad92e51220 (diff)
fix Gajim startup when bonjour is not available.
-rw-r--r--src/roster_window.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/roster_window.py b/src/roster_window.py
index 92f5b4c0a..11bfafd40 100644
--- a/src/roster_window.py
+++ b/src/roster_window.py
@@ -6039,8 +6039,12 @@ class RosterWindow:
gajim.config.set('show_roster_on_startup', True)
if len(gajim.connections) == 0: # if we have no account
- gajim.interface.instances['account_creation_wizard'] = \
- config.AccountCreationWizardWindow()
+ def _open_wizard():
+ gajim.interface.instances['account_creation_wizard'] = \
+ config.AccountCreationWizardWindow()
+ # Open wizard only after roster is created, so we can make it transient
+ # for the roster window
+ gobject.idle_add(_open_wizard)
if not gajim.ZEROCONF_ACC_NAME in gajim.config.get_per('accounts'):
# Create zeroconf in config file
from common.zeroconf import connection_zeroconf