Get backend from application in PlaylistContainer::SetApplication
The manager's library backend may not be set when this is called.
This commit is contained in:
parent
dd9ed23345
commit
1f7607b1db
|
@ -124,7 +124,7 @@ void PlaylistContainer::SetApplication(Application* app) {
|
|||
SetManager(app_->playlist_manager());
|
||||
ui_->playlist->SetApplication(app_);
|
||||
// This should not be called before SetApplication.
|
||||
view()->SetItemDelegates(manager_->library_backend());
|
||||
view()->SetItemDelegates(app->library_backend());
|
||||
connect(app_, SIGNAL(SaveSettings(QSettings*)), SLOT(Save(QSettings*)));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue