Commit 0a766d8f authored by David Faure's avatar David Faure

Fix messagebox popping up when unittests fail

Summary:
IncidenceChanger (optionally) contains a History which itself contains
an IncidenceChanger, so when disabling dialogs in the toplevel
IncidenceChanger, propagate that setting down to the inner
IncidenceChanger.

Test Plan: while ctest -R akonadi-sqlite-historytest ; do done

Reviewers: dvratil

Reviewed By: dvratil

Subscribers: #kde_pim

Tags: #kde_pim

Differential Revision: https://phabricator.kde.org/D6868
parent e7628ad7
......@@ -342,5 +342,10 @@ void History::Private::emitDone(OperationType type, History::ResultCode resultCo
}
}
Akonadi::IncidenceChanger *History::incidenceChanger() const
{
return d->mChanger;
}
#include "moc_history.cpp"
#include "moc_history_p.cpp"
......@@ -1119,6 +1119,9 @@ void IncidenceChanger::endAtomicOperation()
void IncidenceChanger::setShowDialogsOnError(bool enable)
{
d->mShowDialogsOnError = enable;
if (d->mHistory) {
d->mHistory->incidenceChanger()->setShowDialogsOnError(enable);
}
}
bool IncidenceChanger::showDialogsOnError() const
......
Markdown is supported
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