Fix more segfaults.
This commit is contained in:
parent
71d052a14f
commit
b35ddd11cb
1 changed files with 1 additions and 1 deletions
|
@ -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")));
|
||||
|
|
Loading…
Reference in a new issue