[kmymoney] [Bug 503551] kmymoney prints "File ... is already opened by another process"
Ralf Habacker
bugzilla_noreply at kde.org
Tue May 27 22:25:06 BST 2025
https://bugs.kde.org/show_bug.cgi?id=503551
--- Comment #13 from Ralf Habacker <ralf.habacker at 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.
More information about the KMyMoney-devel
mailing list