Make the library sorting locale aware. Fixes issue 3456
This commit is contained in:
parent
ebafe52f19
commit
6019afb097
|
@ -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(
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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_);
|
||||
|
|
|
@ -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)),
|
||||
|
|
|
@ -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()));
|
||||
|
|
Loading…
Reference in New Issue