Commit 775800f7 authored by Matthias Clasen's avatar Matthias Clasen

popover: Don't restore stale default widget

Only restore the saved default widget if the default hasn't been
changed while the popover was visible.
parent b437f89c
......@@ -610,6 +610,7 @@ gtk_popover_unmap (GtkWidget *widget)
gdk_window_hide (gtk_widget_get_window (widget));
GTK_WIDGET_CLASS (gtk_popover_parent_class)->unmap (widget);
if (gtk_window_get_default_widget (priv->window) == priv->default_widget)
gtk_window_set_default (priv->window, priv->prev_default);
g_clear_object (&priv->prev_default);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment