mirror of
https://github.com/clementine-player/Clementine
synced 2024-12-16 03:09:57 +01:00
Fix codereview comments from r454
This commit is contained in:
parent
16e1deaade
commit
f8dd079cfd
@ -8,6 +8,9 @@ LibraryDirectoryModel::LibraryDirectoryModel(QObject* parent)
|
||||
}
|
||||
|
||||
void LibraryDirectoryModel::SetBackend(boost::shared_ptr<LibraryBackendInterface> backend) {
|
||||
if (backend_)
|
||||
backend_->disconnect(this);
|
||||
|
||||
backend_ = backend;
|
||||
|
||||
connect(backend_.get(), SIGNAL(DirectoriesDiscovered(DirectoryList)), SLOT(DirectoriesDiscovered(DirectoryList)));
|
||||
|
Loading…
Reference in New Issue
Block a user