Fix more segfaults.

This commit is contained in:
Zachary Hall 2024-04-13 14:13:11 -07:00
parent 71d052a14f
commit b35ddd11cb

View file

@ -68,7 +68,7 @@ void MainWindow::update_file(optional<std::string> 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")));