Jack,

On Montag, 29. August 2022 21:05:30 CEST Jack via KMyMoney-devel wrote:

> The edit security dialog has a dropdown for price entry: "Price per  
> share," "Total for all shares," or "(default)".  Where is the default  
> value set?  I've been hunting, but have not been able to find it.    
> Even hunting in the code for "price per share" I only find two  
> references (new account dialog and new investment wizard.)

If I understand this correct, you are looking for the code in
ActivityPrivate::priceMode() (this is for master). At the end
of that method it has the following section:

        // if mode is still <Price> then use that
        if (mode == eDialogs::PriceMode::Price) {
            mode = eDialogs::PriceMode::PricePerShare;
        }

where eDialogs::PriceMode::Price is the default.

> Thanks for any pointers.

Hope that helps.

-- 

Regards

Thomas Baumgart

-------------------------------------------------------------
To the optimist, the glass is half full. To the pessimist,
the glass is half empty. To the engineer, the glass is
twice as big as it needs to be.
-------------------------------------------------------------

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to