Commit 46331be1 authored by Claudio Cambra's avatar Claudio Cambra
Browse files

Stop double-emitting modelReset in TodoSortFilterProxyModel



Signed-off-by: Claudio Cambra's avatarClaudio Cambra <claudio.cambra@kde.org>
parent 010b4caa
......@@ -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
......
......@@ -110,7 +110,6 @@ Q_SIGNALS:
void showCompletedChanged();
void sortByChanged();
void sortAscendingChanged();
void badData();
void showCompletedSubtodosInIncompleteChanged();
void incidenceChangerChanged();
......
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