sync with 0.7.4cvs51
[claws.git] / src / prefs_account.c
index 84e62016f3daf6c5784ea3f74c8bdaad1b7825e9..97058dbaed8a426f7ee90474670e6383465604b0 100644 (file)
@@ -1838,6 +1838,10 @@ static gint prefs_account_apply(void)
        protocol = GPOINTER_TO_INT
                (gtk_object_get_user_data(GTK_OBJECT(menuitem)));
 
+       if (*gtk_entry_get_text(GTK_ENTRY(basic.acname_entry)) == '\0') {
+               alertpanel_error(_("Account name is not entered."));
+               return -1;
+       }
        if (*gtk_entry_get_text(GTK_ENTRY(basic.addr_entry)) == '\0') {
                alertpanel_error(_("Mail address is not entered."));
                return -1;