Trying to edit multiple investment transactions
Thomas Baumgart
thb at net-bembel.de
Wed Jan 14 07:05:19 GMT 2026
On Dienstag, 13. Januar 2026 17:11:25 CET Jack via KMyMoney-devel wrote:
> On 1/13/26 10:55 AM, Thomas Baumgart via KMyMoney-devel wrote:
> > On Montag, 12. Januar 2026 16:54:21 CET Jack via KMyMoney-devel wrote:
> >
> >> On 1/12/26 3:17 AM, Ingo Klöcker via KMyMoney-devel wrote:
> >>> On Samstag, 10. Januar 2026 23:35:08 Mitteleuropäische Normalzeit Jack via
> >>> KMyMoney-devel wrote:
> >>>> Is this even theoretically possible? I somehow thought I have done
> >>>> this in the past, but maybe not. I don't see any tooltips or
> >>>> error/warning messages.
> >>>>
> >>>> However, the string '#| msgid "Cannot edit multiple investment
> >>>> transactions at once"' appears in 7 .po files, but not in any other
> >>>> file I can find, and my reading (alwasy suspect) of the .po files is
> >>>> that it is related to OFX import, which doesn't make sense to me.
> >>> The '#' indicates that this msgid is obsolete, i.e. it doesn't exist anymore
> >>> in the source code. Obsolete messages are kept (until they are removed
> >>> manually be the translators) because they might be useful to translate similar
> >>> messages.
> >> Thanks Ingo. That obviously explains why I don't see it in the code.
> >> Still need to figure out what is blocking the multiple edit.
> > Since you asked: look here
> >
> > https://invent.kde.org/office/kmymoney/-/blob/master/kmymoney/views/journaldelegate.cpp#L378-L382
> Thanks for the pointer. I read that as saying that if the selected
> transactions are not all in the same account, emit an error, but if all
> are in the same investment account, no error or warning, just silently
> disable the editor. I clearly need to dig further into the code to
> understand why accountID.isEmpty() would be true if all transactions
> were in the same account. However, assuming the code works as designed,
> might it be reasonable to add a warning after the line where the eidtor
> is set to nullptr? Also, this doesn't say what the problem would be
> with editing multiple investment accounts.
Loading a message into the variable errorMessage in the case when editor
is set to nullptr should display a warning/error.
--
Regards
Thomas Baumgart
-------------------------------------------------------------
Computers are like air conditioners: they stop working
properly if you open WINDOWS (anonymous source)
-------------------------------------------------------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 868 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kmymoney-devel/attachments/20260114/732467f3/attachment.sig>
More information about the KMyMoney-devel
mailing list