[office/kmymoney] kmymoney/views: Fix click on import icon on unselected transaction
Thomas Baumgart <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 2751229b6bbb665751f889d90e905a1549ec51bc by Thomas Baumgart.
Committed on 19/08/2026 at 09:20.
Pushed by tbaumgart into branch 'master'.
Fix click on import icon on unselected transaction
If on clicks on the import icon of an unselected transaction nothing
happens. With this change the original behavior is provided again such
that the transaction is selected and the import is accepted.
M +1 -1 kmymoney/views/ledgerview.cpp
https://invent.kde.org/office/kmymoney/-/commit/2751229b6bbb665751f889d90e905a1549ec51bc
diff --git a/kmymoney/views/ledgerview.cpp b/kmymoney/views/ledgerview.cpp
index 06c907ef7..5a0b5da4c 100644
--- a/kmymoney/views/ledgerview.cpp
+++ b/kmymoney/views/ledgerview.cpp
@@ -1096,7 +1096,7 @@ void LedgerView::mousePressEvent(QMouseEvent* event)
}
break;
case eMyMoney::Model::TransactionIsImportedRole:
- pActions[eMenu::Action::AcceptTransaction]->trigger();
+ MyMoneyUtils::triggerAction(pActions[eMenu::Action::AcceptTransaction]);
break;
case eMyMoney::Model::JournalSplitIsMatchedRole: {
buttonYes.setText(pActions[eMenu::Action::AcceptTransaction]->text());