From 31df2151988d9dd9a9a5d1c1f4f84744573c0e02 Mon Sep 17 00:00:00 2001 From: Nikos Kouremenos Date: Sat, 18 Jun 2005 21:53:53 +0000 Subject: [PATCH] if none account, the first one gets called Main (user can still change it) --- src/config.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config.py b/src/config.py index 8d4d7ae1b..c30086c19 100644 --- a/src/config.py +++ b/src/config.py @@ -931,11 +931,13 @@ class AccountModificationWindow: self.modify = True self.init_account() self.xml.get_widget('new_account_checkbutton').set_sensitive(False) - self.xml.get_widget('name_entry').grab_focus() + self.xml.get_widget('save_button').grab_focus() else: # we create a new account if len(gajim.connections) == 0: # is it the first accound we're creating? # the first account *has* to sync self.xml.get_widget('sync_with_global_status_checkbutton').set_active(True) + self.xml.get_widget('name_entry').set_text('Main') + self.xml.get_widget('jid_entry').grab_focus() self.window.show_all() def on_checkbutton_toggled(self, widget, widgets):