https://bugs.kde.org/show_bug.cgi?id=470293

--- Comment #3 from Christoph Cullmann <cullm...@kde.org> ---
Hmmm, or the session save timer does that on shutdown.


void KateSessionManager::initTimer()
{
    if (m_sessionSaveTimer) {
        qWarning() << "Session save timer is already initalized! should not
happen";
        return;
    }
    m_sessionSaveTimer = std::make_unique<QTimer>();
    m_sessionSaveTimer->setInterval(5000);
    m_sessionSaveTimer->setSingleShot(true);
    auto *t = m_sessionSaveTimer.get();
    auto dm = KateApp::self()->documentManager();
    auto startTimer = [t] {
        if (!t->isActive()) {
            t->start();
        }
    };
    connect(dm, &KateDocManager::documentCreated, t, startTimer);
    connect(dm, &KateDocManager::documentDeleted, t, startTimer);
    m_sessionSaveTimer->callOnTimeout(this, [this] {
        saveActiveSession(true);
    });
}

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to