source-dialog: correctly check the current stack page

This commit is contained in:
Georges Basile Stavracas Neto
2015-05-25 12:35:31 -04:00
committed by Erick Pérez Castellanos
parent 35a622a27b
commit ed572e1ff8
+1 -1
View File
@@ -227,7 +227,7 @@ back_button_clicked (GtkButton *button,
* go back to the GOA calendar selection page.
*/
if (g_strcmp0 (gtk_stack_get_visible_child_name (GTK_STACK (priv->stack)), "edit"))
if (g_strcmp0 (gtk_stack_get_visible_child_name (GTK_STACK (priv->stack)), "edit") == 0)
{
gtk_stack_set_visible_child_name (GTK_STACK (priv->stack), "main");
gtk_widget_hide (GTK_WIDGET (button));