Commit e3da340f authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Stop emitting layoutchanged on sort, which stops view resetting every time you do something

parent 9504c9ff
Pipeline #97964 failed with stage
in 5 minutes and 20 seconds
......@@ -184,12 +184,8 @@ void TodoSortFilterProxyModel::setFilter(const QVariantMap &filter)
void TodoSortFilterProxyModel::sortTodoModel(int column, bool ascending)
Q_EMIT layoutAboutToBeChanged();
auto order = ascending ? Qt::AscendingOrder : Qt::DescendingOrder;
this->sort(column, order);
Q_EMIT layoutChanged();
void TodoSortFilterProxyModel::filterTodoName(QString name, int showCompleted)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment