Commit c10a6179 authored by Laurent Montel's avatar Laurent Montel
Browse files

Don't use deprecated method

parent 8ccb1e7a
Pipeline #211229 passed with stage
in 12 minutes and 52 seconds
......@@ -16,7 +16,7 @@ MemoryCalendarMemento::MemoryCalendarMemento()
: QObject(nullptr)
{
Akonadi::ETMCalendar::Ptr etmCalendar = CalendarSupport::calendarSingleton(/*createIfNull=*/false);
if (etmCalendar && etmCalendar->isLoaded()) {
if (etmCalendar && !etmCalendar->isLoading()) {
// Good, either korganizer or kontact summary view are already running, so reuse ETM to save memory
mCalendar = etmCalendar;
QMetaObject::invokeMethod(this, "finalize", Qt::QueuedConnection);
......
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