Eliminate race condition for subsonic library TotalSongCountUpdated

This commit is contained in:
Alan Briolat 2013-01-20 23:24:14 +00:00
parent 2d68315c22
commit a7fe1b693b
1 changed files with 2 additions and 3 deletions

View File

@ -55,6 +55,8 @@ SubsonicService::SubsonicService(Application* app, InternetModel *parent)
QString::null,
QString::null,
kFtsTable);
connect(library_backend_, SIGNAL(TotalSongCountUpdated(int)),
SLOT(UpdateTotalSongCount(int)));
library_model_ = new LibraryModel(library_backend_, app_, this);
library_model_->set_show_various_artists(false);
@ -71,9 +73,6 @@ SubsonicService::SubsonicService(Application* app, InternetModel *parent)
library_sort_model_->setDynamicSortFilter(true);
library_sort_model_->sort(0);
connect(library_backend_, SIGNAL(TotalSongCountUpdated(int)),
SLOT(UpdateTotalSongCount(int)));
connect(this, SIGNAL(LoginStateChanged(SubsonicService::LoginState)),
SLOT(onLoginStateChanged(SubsonicService::LoginState)));