aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/event-page.c
diff options
context:
space:
mode:
Diffstat (limited to 'calendar/gui/dialogs/event-page.c')
-rw-r--r--calendar/gui/dialogs/event-page.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c
index 6850a3b151..a65da3469b 100644
--- a/calendar/gui/dialogs/event-page.c
+++ b/calendar/gui/dialogs/event-page.c
@@ -3016,13 +3016,9 @@ epage_client_connect_cb (GObject *source_object,
if (error) {
GtkWidget *dialog;
ECalClient *old_client;
- ESource *source;
old_client = comp_editor_get_client (editor);
- source = e_source_combo_box_ref_active (
- E_SOURCE_COMBO_BOX (priv->source_combo_box));
-
e_source_combo_box_set_active (
E_SOURCE_COMBO_BOX (priv->source_combo_box),
e_client_get_source (E_CLIENT (old_client)));
@@ -3030,14 +3026,10 @@ epage_client_connect_cb (GObject *source_object,
dialog = gtk_message_dialog_new (
NULL, GTK_DIALOG_MODAL,
GTK_MESSAGE_WARNING, GTK_BUTTONS_OK,
- _("Unable to open the calendar '%s': %s"),
- e_source_get_display_name (source),
- error->message);
+ "%s", error->message);
gtk_dialog_run (GTK_DIALOG (dialog));
gtk_widget_destroy (dialog);
- g_object_unref (source);
-
g_clear_error (&error);
} else {
gchar *backend_addr = NULL;