Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
PIM
Kalendar
Commits
533cde2d
Commit
533cde2d
authored
Nov 26, 2021
by
Claudio Cambra
Browse files
Fix possible assert fail in TodoSortFilterProxyModel
parent
939d249b
Pipeline
#100995
passed with stage
in 6 minutes and 26 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/todosortfilterproxymodel.cpp
View file @
533cde2d
...
...
@@ -364,7 +364,8 @@ bool TodoSortFilterProxyModel::lessThan(const QModelIndex &left, const QModelInd
// To-dos without due date should appear last when sorting ascending,
// so you can see the most urgent tasks first. (bug #174763)
if
(
right
.
column
()
==
TodoModel
::
DueDateColumn
)
{
const
int
comparison
=
compareDueDates
(
left
,
right
);
QModelIndex
leftDueDateIndex
=
left
.
sibling
(
left
.
row
(),
TodoModel
::
DueDateColumn
);
// Prevent possible assert fail
const
int
comparison
=
compareDueDates
(
leftDueDateIndex
,
right
);
if
(
comparison
!=
0
)
{
return
comparison
==
-
1
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment