mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-18 08:40:07 +00:00
entry: Avoid criticals
After the recent changes, we could end up calling gtk_entry_update_handles in cases where the text_handle has not be created (e.g. when dragging text from an entry). Avoid that.
This commit is contained in:
parent
1cc8de2412
commit
ca077a085c
@ -4574,7 +4574,8 @@ gtk_entry_multipress_gesture_pressed (GtkGestureMultiPress *gesture,
|
||||
gtk_gesture_set_state (priv->drag_gesture,
|
||||
GTK_EVENT_SEQUENCE_CLAIMED);
|
||||
|
||||
gtk_entry_update_handles (entry, mode);
|
||||
if (priv->text_handle)
|
||||
gtk_entry_update_handles (entry, mode);
|
||||
}
|
||||
|
||||
if (n_press >= 3)
|
||||
|
Loading…
Reference in New Issue
Block a user