From b35ddd11cb2ebc139dc41bcb226755027177427c Mon Sep 17 00:00:00 2001 From: Zachary Hall Date: Sat, 13 Apr 2024 14:13:11 -0700 Subject: [PATCH] Fix more segfaults. --- backends/ui/gtk/main_window.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backends/ui/gtk/main_window.cpp b/backends/ui/gtk/main_window.cpp index a037b9f..3bcbf83 100644 --- a/backends/ui/gtk/main_window.cpp +++ b/backends/ui/gtk/main_window.cpp @@ -68,7 +68,7 @@ void MainWindow::update_file(optional new_file) { } } stream_selection_box.signal_row_selected().connect([=,this](auto *row) { - if (row->get_data(Glib::Quark("id")) == nullptr) { + if (row == nullptr || row->get_data(Glib::Quark("id")) == nullptr) { return; } this->playback->play_stream(*(int*)row->get_data(Glib::Quark("id")));