Only connect ClearPixmapDiskCache if app is set
This commit is contained in:
parent
37cf0c2fb6
commit
b0966f14e6
@ -139,7 +139,9 @@ CollectionModel::CollectionModel(CollectionBackend *backend, Application *app, Q
|
||||
backend_->UpdateTotalArtistCountAsync();
|
||||
backend_->UpdateTotalAlbumCountAsync();
|
||||
|
||||
connect(app_, SIGNAL(ClearPixmapDiskCache()), SLOT(ClearDiskCache()));
|
||||
if (app_) {
|
||||
connect(app_, SIGNAL(ClearPixmapDiskCache()), SLOT(ClearDiskCache()));
|
||||
}
|
||||
|
||||
ReloadSettings();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user