1
0
mirror of https://github.com/strawberrymusicplayer/strawberry synced 2024-12-18 11:39:31 +01:00

Only connect ClearPixmapDiskCache if app is set

This commit is contained in:
Jonas Kvinge 2020-05-16 18:25:13 +02:00
parent 37cf0c2fb6
commit b0966f14e6

View File

@ -139,7 +139,9 @@ CollectionModel::CollectionModel(CollectionBackend *backend, Application *app, Q
backend_->UpdateTotalArtistCountAsync();
backend_->UpdateTotalAlbumCountAsync();
if (app_) {
connect(app_, SIGNAL(ClearPixmapDiskCache()), SLOT(ClearDiskCache()));
}
ReloadSettings();