Sort items in the library view under the correct divider when they have no unicode decomposition.

Update issue #672
Can you try this and see if it fixes it for you?
This commit is contained in:
David Sansome 2010-08-30 16:20:04 +00:00
parent 5a616cf40a
commit ce0e468d75
2 changed files with 1 additions and 1 deletions

View File

@ -626,6 +626,7 @@ void LibraryModel::FinishItem(GroupBy type,
// Create the divider entry if we're supposed to
if (create_divider) {
QString divider_key = DividerKey(type, item);
item->sort_text.prepend(divider_key);
if (!divider_key.isEmpty() && !divider_nodes_.contains(divider_key)) {
if (signal)

View File

@ -202,7 +202,6 @@ MainWindow::MainWindow(NetworkAccessManager* network, Engine::Type engine, QWidg
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);
ui_->playlist->SetManager(playlists_);