1
0
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:
David Sansome 2010-03-23 17:56:24 +00:00
parent 16e1deaade
commit f8dd079cfd

View File

@ -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)));