From 4e7fd433aabd44fa48a18167a5e9f2ae4fe40bd6 Mon Sep 17 00:00:00 2001 From: smorlat Date: Fri, 11 Sep 2009 11:03:22 +0000 Subject: [PATCH] do not display '????' git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@646 3f6dc0c8-ddfe-455d-9043-3cd528dc4637 --- linphone/gtk-glade/loginframe.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/linphone/gtk-glade/loginframe.c b/linphone/gtk-glade/loginframe.c index 98b8aeeca..7980861b7 100644 --- a/linphone/gtk-glade/loginframe.c +++ b/linphone/gtk-glade/loginframe.c @@ -46,9 +46,10 @@ void linphone_gtk_show_login_frame(LinphoneProxyConfig *cfg){ osip_from_parse(from,linphone_proxy_config_get_identity(cfg)); ai=linphone_core_find_auth_info(lc,linphone_proxy_config_get_domain(cfg),from->url->username); - /*display the last entered username*/ - gtk_entry_set_text(GTK_ENTRY(linphone_gtk_get_widget(mw,"login_username")), - from->url->username); + /*display the last entered username, if not '?????'*/ + if (from->url->username[0]!='?') + gtk_entry_set_text(GTK_ENTRY(linphone_gtk_get_widget(mw,"login_username")), + from->url->username); gtk_entry_set_text(GTK_ENTRY(linphone_gtk_get_widget(mw,"login_password")), ai!=NULL ? ai->passwd : ""); if (linphone_core_get_download_bandwidth(lc)==0 &&