[kmymoney] [Bug 441801] KMyMoney crash after configure toolbar then select new view

Ralf Habacker bugzilla_noreply at kde.org
Tue Aug 6 14:42:52 BST 2024


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

Ralf Habacker <ralf.habacker at freenet.de> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|REPORTED                    |CONFIRMED
                 CC|                            |ralf.habacker at freenet.de
     Ever confirmed|0                           |1

--- Comment #8 from Ralf Habacker <ralf.habacker at freenet.de> ---
(In reply to Nico Kruber from comment #6)

> -- Backtrace (Reduced):
... 
> #5  0x00007f4455fe17df in QWidget::setEnabled (this=<optimized out>,
> enable=enable at entry=false) at kernel/qwidget.cpp:3227
> #6  0x00005581673aea1e in KGlobalLedgerView::updateLedgerActionsInternal
> (this=0x558168f7c860) at
> /usr/src/debug/kmymoney-5.1.3/kmymoney/views/kgloballedgerview.cpp:294

At the mentioned source code location there is:

    pMenus[Menu::MoveTransaction]->setEnabled(false);
    pMenus[Menu::MarkTransaction]->setEnabled(false);
    pMenus[Menu::MarkTransactionContext]->setEnabled(false);

which leads me to believe that the pMenus entries mentioned do not have to be
set or zero, which leads to the crash. A check beforehand would avoid the
problem. The fact that the menu entries are not present suggests that there may
be a problem with the order of initialization. 

In the master branch, the corresponding part has been massively rewritten, so
that this problem probably does not occur there.

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


More information about the KMyMoney-devel mailing list