Skip to content

Commit

Permalink
Refresh entire model when the sort order changes
Browse files Browse the repository at this point in the history
  • Loading branch information
matthewvogt committed Sep 22, 2016
1 parent 4b60fc4 commit 61cb955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/plugin/filemodel.cpp
Expand Up @@ -599,7 +599,7 @@ void FileModel::scheduleUpdate(ChangedFlags flags)

void FileModel::update()
{
if (!m_populated) {
if (!m_populated || (m_changedFlags & SortOrderChanged)) {
// Do a complete refresh
readDirectory();
} else if (m_changedFlags & ContentChanged) {
Expand Down

0 comments on commit 61cb955

Please sign in to comment.