Fix broken behavior of "priority by shown file order"

Closes #15421.
PR #15423.
This commit is contained in:
Chocobo1 2021-09-07 11:47:13 +08:00 committed by GitHub
parent 6a6268c068
commit 7a6edcdddb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -639,7 +639,7 @@ void PropertiesWidget::displayFilesListMenu(const QPoint &)
}
// Save changes
filteredFilesChanged();
this->applyPriorities();
};
QMenu *subMenu = menu->addMenu(tr("Priority"));
@ -692,6 +692,9 @@ void PropertiesWidget::displayFilesListMenu(const QPoint &)
const QModelIndex &index = selectedRows[i];
m_propListModel->setData(index.sibling(index.row(), PRIORITY)
, static_cast<int>(priority));
// Save changes
this->applyPriorities();
}
});
}