mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-15 23:00:08 +00:00
inspector: Avoid a critical
Avoid a critical when closing the inspector with the recorder page open.
This commit is contained in:
parent
a5e929ce36
commit
d7060025e0
@ -404,6 +404,9 @@ recordings_list_row_selected (GtkListBox *box,
|
||||
{
|
||||
GtkInspectorRecording *recording;
|
||||
|
||||
if (recorder->recordings == NULL)
|
||||
return;
|
||||
|
||||
if (row)
|
||||
recording = g_list_model_get_item (recorder->recordings, gtk_list_box_row_get_index (row));
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user