Hopefully fix segfault again.
This commit is contained in:
parent
4137095ecf
commit
71d052a14f
1 changed files with 3 additions and 0 deletions
|
@ -68,6 +68,9 @@ void MainWindow::update_file(optional<std::string> new_file) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
stream_selection_box.signal_row_selected().connect([=,this](auto *row) {
|
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")));
|
this->playback->play_stream(*(int*)row->get_data(Glib::Quark("id")));
|
||||||
});
|
});
|
||||||
std::optional<std::string> title = playback->get_current_title();
|
std::optional<std::string> title = playback->get_current_title();
|
||||||
|
|
Loading…
Reference in a new issue