Hopefully fix segfault again.

This commit is contained in:
Zachary Hall 2024-04-13 13:59:15 -07:00
parent 4137095ecf
commit 71d052a14f

View file

@ -68,6 +68,9 @@ 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) {
return;
}
this->playback->play_stream(*(int*)row->get_data(Glib::Quark("id")));
});
std::optional<std::string> title = playback->get_current_title();