aboutsummaryrefslogtreecommitdiffstats
path: root/mail/e-mail-label-dialog.c
diff options
context:
space:
mode:
Diffstat (limited to 'mail/e-mail-label-dialog.c')
-rw-r--r--mail/e-mail-label-dialog.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mail/e-mail-label-dialog.c b/mail/e-mail-label-dialog.c
index 15222cc7b4..839cc75424 100644
--- a/mail/e-mail-label-dialog.c
+++ b/mail/e-mail-label-dialog.c
@@ -266,6 +266,9 @@ e_mail_label_dialog_set_label_name (EMailLabelDialog *dialog,
entry = GTK_ENTRY (dialog->priv->entry);
+ if (g_strcmp0 (gtk_entry_get_text (entry), label_name) == 0)
+ return;
+
gtk_entry_set_text (entry, label_name);
g_object_notify (G_OBJECT (dialog), "label-name");