From 71d052a14f42612af06d609463ed56d19ca2162f Mon Sep 17 00:00:00 2001 From: Zachary Hall Date: Sat, 13 Apr 2024 13:59:15 -0700 Subject: [PATCH] Hopefully fix segfault again. --- backends/ui/gtk/main_window.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/backends/ui/gtk/main_window.cpp b/backends/ui/gtk/main_window.cpp index 32064a0..a037b9f 100644 --- a/backends/ui/gtk/main_window.cpp +++ b/backends/ui/gtk/main_window.cpp @@ -68,6 +68,9 @@ 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) { + return; + } this->playback->play_stream(*(int*)row->get_data(Glib::Quark("id"))); }); std::optional title = playback->get_current_title();