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();