From 609f882e277ff68f51f6197ae8163b3a5d782c90 Mon Sep 17 00:00:00 2001 From: Arnaud Bienner Date: Thu, 24 Feb 2011 23:29:45 +0000 Subject: [PATCH] Making library init async. Prevent from freezing GUI with large collection (especially Jamendo) when loading from DB for the first time since startup --- src/library/librarymodel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/library/librarymodel.cpp b/src/library/librarymodel.cpp index 9abfd1ef9..c56280105 100644 --- a/src/library/librarymodel.cpp +++ b/src/library/librarymodel.cpp @@ -98,7 +98,7 @@ void LibraryModel::Init() { backend_->UpdateTotalSongCountAsync(); - Reset(); + ResetAsync(); } void LibraryModel::SongsDiscovered(const SongList& songs) {