From 6e8aede2ccc77248fe05cf6e6de063a02bf33584 Mon Sep 17 00:00:00 2001 From: Rodrigo Moya Date: Fri, 9 Jul 2004 16:13:43 +0000 Subject: Fixes #60289 2004-07-09 Rodrigo Moya Fixes #60289 * gui/dialogs/select-source-dialog.c (select_source_dialog): set the absolute URI on the selected source, so that the ESource we keep around has a valid URI. * gui/e-calendar-view.c (transfer_item_to): when copying appointments, change the UID. (transfer_selected_items): don't pass hardcoded values to transfer_item_to. svn path=/trunk/; revision=26608 --- calendar/gui/dialogs/select-source-dialog.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'calendar/gui/dialogs') diff --git a/calendar/gui/dialogs/select-source-dialog.c b/calendar/gui/dialogs/select-source-dialog.c index 04f6ab228a..b676cadb0a 100644 --- a/calendar/gui/dialogs/select-source-dialog.c +++ b/calendar/gui/dialogs/select-source-dialog.c @@ -156,7 +156,18 @@ select_source_dialog (GtkWindow *parent, ECalSourceType obj_type) g_list_free (icon_list); } - if (gtk_dialog_run (GTK_DIALOG (dialog)) != GTK_RESPONSE_OK) { + if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_OK) { + if (selected_source) { + char *absolute_uri; + + /* set the absolute URI on the source we keep around, since the group + will be unrefed */ + absolute_uri = e_source_build_absolute_uri (selected_source); + e_source_set_absolute_uri (selected_source, (const char *) absolute_uri); + + g_free (absolute_uri); + } + } else { if (selected_source) g_object_unref (selected_source); selected_source = NULL; -- cgit