Make the library sorting locale aware. Fixes issue 3456

This commit is contained in:
David Sansome 2013-02-05 22:17:09 +11:00
parent ebafe52f19
commit 6019afb097
5 changed files with 5 additions and 0 deletions

View File

@ -45,6 +45,7 @@ CloudFileService::CloudFileService(
library_sort_model_->setSourceModel(library_model_);
library_sort_model_->setSortRole(LibraryModel::Role_SortText);
library_sort_model_->setDynamicSortFilter(true);
library_sort_model_->setSortLocaleAware(true);
library_sort_model_->sort(0);
app->global_search()->AddProvider(new LibrarySearchProvider(

View File

@ -119,6 +119,7 @@ JamendoService::JamendoService(Application* app, InternetModel* parent)
library_sort_model_->setSourceModel(library_model_);
library_sort_model_->setSortRole(LibraryModel::Role_SortText);
library_sort_model_->setDynamicSortFilter(true);
library_sort_model_->setSortLocaleAware(true);
library_sort_model_->sort(0);
search_provider_ = new LibrarySearchProvider(

View File

@ -94,6 +94,7 @@ MagnatuneService::MagnatuneService(Application* app, InternetModel* parent)
library_sort_model_->setSourceModel(library_model_);
library_sort_model_->setSortRole(LibraryModel::Role_SortText);
library_sort_model_->setDynamicSortFilter(true);
library_sort_model_->setSortLocaleAware(true);
library_sort_model_->sort(0);
app_->player()->RegisterUrlHandler(url_handler_);

View File

@ -75,6 +75,7 @@ SubsonicService::SubsonicService(Application* app, InternetModel* parent)
library_sort_model_->setSourceModel(library_model_);
library_sort_model_->setSortRole(LibraryModel::Role_SortText);
library_sort_model_->setDynamicSortFilter(true);
library_sort_model_->setSortLocaleAware(true);
library_sort_model_->sort(0);
connect(this, SIGNAL(LoginStateChanged(SubsonicService::LoginState)),

View File

@ -257,6 +257,7 @@ MainWindow::MainWindow(Application* app,
library_sort_model_->setSourceModel(app_->library()->model());
library_sort_model_->setSortRole(LibraryModel::Role_SortText);
library_sort_model_->setDynamicSortFilter(true);
library_sort_model_->setSortLocaleAware(true);
library_sort_model_->sort(0);
connect(ui_->playlist, SIGNAL(ViewSelectionModelChanged()), SLOT(PlaylistViewSelectionModelChanged()));