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

--- Comment #13 from Ralf Habacker <ralf.habac...@freenet.de> ---
The KCrash library contains a function KCrash::setEmergencySaveFunction()
(https://api.kde.org/frameworks/kcrash/html/kcrash_8h_source.html#l00095),
which can be used to install a handler for emergencies. This file can then be
closed and the lock removed again.

static void emergencySaveFunction(int)
{
    if (kmymoney)
        kmymoney->slotFileClose();
}

int main()
{
...
    KCrash::setEmergencySaveFunction (emergencySaveFunction);
...

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to