mirror of
https://github.com/clangen/musikcube.git
synced 2024-11-19 20:13:36 +00:00
Fixed a silly null pointer dereference in TrackListView related to
auto-scrolling behavior.
This commit is contained in:
parent
3476c7b2ed
commit
6dbde108f7
@ -123,7 +123,7 @@ void TrackListView::Clear() {
|
||||
}
|
||||
|
||||
void TrackListView::ScrollToPlaying() {
|
||||
if (this->playing) {
|
||||
if (this->playing && this->metadata) {
|
||||
DBID id = this->playing->Id();
|
||||
for (size_t i = 0; i < this->metadata->Count(); i++) {
|
||||
if (this->metadata->GetId(i) == id) {
|
||||
|
Loading…
Reference in New Issue
Block a user