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

--- Comment #2 from Christoph Cullmann <cullm...@kde.org> ---
I think we did break the logic for that with the current code in


/**
 * queryClose(), take care that after the last mainwindow the stuff is closed
 */
bool KateMainWindow::queryClose()
{
    // session saving, can we close all views ?
    // just test, not close them actually
    if (qApp->isSavingSession()) {
        return queryClose_internal();
    }

    // normal closing of window
    // if we are not the last window, just close the documents we own
    if (KateApp::self()->mainWindowsCount() > 1) {
        return winClosesDocuments() ? queryClose_internal(nullptr, this) :
true;
    }

    // last one: check if we can close all documents, try run
    // and save docs if we really close down !
    if (queryClose_internal()) {
        KateApp::self()->sessionManager()->saveActiveSession(true);
       
KateApp::self()->stashManager()->stashDocuments(KateApp::self()->sessionManager()->activeSession()->config(),
                                                       
KateApp::self()->documentManager()->documentList());
        return true;
    }

    return false;
}

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

Reply via email to