aboutsummaryrefslogtreecommitdiff
path: root/src/prefs_account_dialog.c
diff options
context:
space:
mode:
authorhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2008-04-10 08:24:31 +0000
committerhiro <hiro@ee746299-78ed-0310-b773-934348b2243d>2008-04-10 08:24:31 +0000
commit8ad18e775be48cb52a6b182b88a831255793f465 (patch)
treee57a405ae675a07d9811fa6d7cfe686320efcf27 /src/prefs_account_dialog.c
parent62406eb470f36addb2ccdca581d9a58ef6c3cbb8 (diff)
spaces in address and server entries are automatically removed at applying account configuration.
git-svn-id: svn://sylpheed.sraoss.jp/sylpheed/trunk@1974 ee746299-78ed-0310-b773-934348b2243d
Diffstat (limited to 'src/prefs_account_dialog.c')
-rw-r--r--src/prefs_account_dialog.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/prefs_account_dialog.c b/src/prefs_account_dialog.c
index 4c285bcd..6df3b1ed 100644
--- a/src/prefs_account_dialog.c
+++ b/src/prefs_account_dialog.c
@@ -1942,6 +1942,11 @@ static gint prefs_account_apply(void)
protocol = GPOINTER_TO_INT
(g_object_get_data(G_OBJECT(menuitem), MENU_VAL_ID));
+ gtkut_entry_strip_text(GTK_ENTRY(basic.addr_entry));
+ gtkut_entry_strip_text(GTK_ENTRY(basic.smtpserv_entry));
+ gtkut_entry_strip_text(GTK_ENTRY(basic.recvserv_entry));
+ gtkut_entry_strip_text(GTK_ENTRY(basic.nntpserv_entry));
+
if (*gtk_entry_get_text(GTK_ENTRY(basic.acname_entry)) == '\0') {
alertpanel_error(_("Account name is not entered."));
return -1;