Commit 0a12113d authored by Matthias Clasen's avatar Matthias Clasen Committed by Tristan Van Berkom
Browse files

Fix an infinite loop in gtk_dialog_map()

The new focus handling with links in labels tripped up the code
that tries to avoid focussing labels. Bug 612066
parent 248719c7
......@@ -414,12 +414,11 @@ gtk_dialog_map (GtkWidget *widget)
if (first_focus == NULL)
first_focus = window->focus_widget;
else if (first_focus == window->focus_widget)
if (!GTK_IS_LABEL (window->focus_widget))
gtk_label_select_region (GTK_LABEL (window->focus_widget), 0, 0);
if (!gtk_label_get_current_uri (GTK_LABEL (window->focus_widget)))
gtk_label_select_region (GTK_LABEL (window->focus_widget), 0, 0);
while (TRUE);
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