Review Request 127559: BUG 360129 Do not fetch from csvimporterrc if it's empty
Allan Anderson
agander93 at gmail.com
Fri Apr 8 13:52:35 UTC 2016
> On April 7, 2016, 7:59 p.m., Christian David wrote:
> > kmymoney/plugins/csvimport/investprocessing.cpp, line 1967
> > <https://git.reviewboard.kde.org/r/127559/diff/1/?file=455181#file455181line1967>
> >
> > Should become
> > ```m_shrsinList = profilesGroup.readEntry("ShrsinParam", m_shrsinList);```
> >
> > The if() is very long and not needed here. However, I still do not know if this is the issue. Also the ```i18nc()s``` from ```init()``` could go here if the readSettings method is always called, which I do not know either.
> Should become
> m_shrsinList = profilesGroup.readEntry("ShrsinParam", m_shrsinList);
I'm not sure I understand this. The second parameter is the default value to return if the key is not found. What does it achieve in this case?
> The if() is very long and not needed here.
There are several ifs around here, but I don't see an unduly long one.
> Also the i18nc()s from init()
> could go here if the readSettings method is always called, which I do not know either.
readSettings is called only once, from void InvestProcessing::slotFileDialogClicked(), so that code could be moved somewhere in void InvestProcessing::readSettings(), I think.
- Allan
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://git.reviewboard.kde.org/r/127559/#review94397
-----------------------------------------------------------
On April 3, 2016, 4:45 a.m., Łukasz Wojniłowicz wrote:
>
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://git.reviewboard.kde.org/r/127559/
> -----------------------------------------------------------
>
> (Updated April 3, 2016, 4:45 a.m.)
>
>
> Review request for KMymoney.
>
>
> Bugs: 360129
> http://bugs.kde.org/show_bug.cgi?id=360129
>
>
> Repository: kmymoney
>
>
> Description
> -------
>
> Fixes bug #360129. During creation of new investment statement
> template, transaction types are initialized in
> investprocessing.cpp, but then are overridden with empty fields
> from profile that was just created in csvimporterrc which results
> in every non-buy transaction unrecognized during the import.
>
>
> Diffs
> -----
>
> kmymoney/plugins/csvimport/investprocessing.cpp 3879819
>
> Diff: https://git.reviewboard.kde.org/r/127559/diff/
>
>
> Testing
> -------
>
> Tested using financial statement from bug #360129.
>
>
> Thanks,
>
> Łukasz Wojniłowicz
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kmymoney-devel/attachments/20160408/021c9e20/attachment.html>
More information about the KMyMoney-devel
mailing list