application: fix setting active-date logic

https://bugzilla.gnome.org/show_bug.cgi?id=782192
This commit is contained in:
Mohammed Sadiq
2017-05-06 12:25:16 -03:00
committed by Georges Basile Stavracas Neto
parent 0c01c6eff1
commit 9ed375cd99
+1 -1
View File
@@ -228,7 +228,7 @@ gcal_application_activate (GApplication *application)
gtk_window_present (GTK_WINDOW (self->window));
if (!self->initial_date)
if (self->initial_date)
g_object_set (self->window, "active-date", self->initial_date, NULL);
g_clear_pointer (&self->initial_date, g_free);