[gtk/matthiasc/for-master] inspector: Avoid a critical
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/matthiasc/for-master] inspector: Avoid a critical
- Date: Sun, 17 Jan 2021 15:58:30 +0000 (UTC)
commit d7060025e01b4ffe2c01bad8617075b2f32bd1a9
Author: Matthias Clasen <mclasen redhat com>
Date: Sun Jan 17 10:55:53 2021 -0500
inspector: Avoid a critical
Avoid a critical when closing the inspector with the
recorder page open.
gtk/inspector/recorder.c | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/gtk/inspector/recorder.c b/gtk/inspector/recorder.c
index 5b6452f340..c8042ca580 100644
--- a/gtk/inspector/recorder.c
+++ b/gtk/inspector/recorder.c
@@ -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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]