source-dialog: clear previously unsaved calendars
This commit is contained in:
committed by
Erick Pérez Castellanos
parent
fb2bfca990
commit
0415d2272b
@@ -340,6 +340,13 @@ select_calendar_file (GtkButton *button,
|
|||||||
|
|
||||||
file = gtk_file_chooser_get_file (GTK_FILE_CHOOSER (dialog));
|
file = gtk_file_chooser_get_file (GTK_FILE_CHOOSER (dialog));
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove any reminescent ESources
|
||||||
|
* cached before.
|
||||||
|
*/
|
||||||
|
if (priv->local_source != NULL)
|
||||||
|
g_clear_pointer (&(priv->local_source), g_object_unref);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Since we cannot guarantee that the
|
* Since we cannot guarantee that the
|
||||||
* type system registered ESourceLocal,
|
* type system registered ESourceLocal,
|
||||||
|
|||||||
Reference in New Issue
Block a user