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
46331be1
Commit
46331be1
authored
Oct 16, 2022
by
Claudio Cambra
Browse files
Stop double-emitting modelReset in TodoSortFilterProxyModel
Signed-off-by:
Claudio Cambra
<
claudio.cambra@kde.org
>
parent
010b4caa
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/models/todosortfilterproxymodel.cpp
View file @
46331be1
...
...
@@ -377,12 +377,11 @@ Akonadi::ETMCalendar::Ptr TodoSortFilterProxyModel::calendar() const
void
TodoSortFilterProxyModel
::
setCalendar
(
Akonadi
::
ETMCalendar
::
Ptr
&
calendar
)
{
beginResetModel
();
// No need to manually emit beginResetModel(), source model does it for us
m_calendar
=
calendar
;
m_todoTreeModel
->
setSourceModel
(
calendar
->
model
());
m_baseTodoModel
->
setCalendar
(
m_calendar
);
Q_EMIT
calendarChanged
();
endResetModel
();
}
Akonadi
::
IncidenceChanger
*
TodoSortFilterProxyModel
::
incidenceChanger
()
const
...
...
src/models/todosortfilterproxymodel.h
View file @
46331be1
...
...
@@ -110,7 +110,6 @@ Q_SIGNALS:
void
showCompletedChanged
();
void
sortByChanged
();
void
sortAscendingChanged
();
void
badData
();
void
showCompletedSubtodosInIncompleteChanged
();
void
incidenceChangerChanged
();
...
...
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