inspector: Avoid a critical

Avoid a critical when closing the inspector with the
recorder page open.
This commit is contained in:
Matthias Clasen 2021-01-17 10:55:53 -05:00
parent a5e929ce36
commit d7060025e0

View File

@ -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