[kmymoney] [Bug 470225] Segfault after hiding reconciled transactions

Ralf Habacker bugzilla_noreply at kde.org
Mon Aug 12 15:13:13 BST 2024


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

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

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ralf.habacker at freenet.de

--- Comment #2 from Ralf Habacker <ralf.habacker at freenet.de> ---
(In reply to Dawid Wróbel from comment #0)
> LedgerSortProxyModel::setHideReconciledTransactions(bool) + 4

In KTagsView::showEvent() there is a connect between changed settings event and
this method as target: 

        connect(LedgerViewSettings::instance(),
&LedgerViewSettings::settingsChanged, this, [&]() {
            Q_D(KTagsView);
           
d->m_transactionFilter->setHideReconciledTransactions(LedgerViewSettings::instance()->hideReconciledTransactions());
           
d->m_transactionFilter->setHideTransactionsBefore(LedgerViewSettings::instance()->hideTransactionsBefore());

It crashes when d->m_transactionFilter is null.  I didn't see any disconnection
in the constructor. If the mentioned event is triggered after this object has
already been destroyed, this can happen. A similar pattern is also used in the
KPayeesView and LedgerViewPage classes.

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



More information about the kde-mac mailing list