This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Update Stock and Currency Prices

Tags: None
(comma "," separated)
mbeenham
Registered Member
Posts
95
Karma
0
OS

Update Stock and Currency Prices

Sat May 28, 2011 4:22 pm
When updating stock and currency prices a small window flashes up for every security entitled "Copying" that then disappears before it can be read.

This is not a problem except that updating all the prices seems to take much longer than previously - possibly due to the extra pop-up - and continually returns the focus to KMyMoney even if I minimise it to do something else while prices are updating.

I am not really interested in watching price update progress so if it is not essential is there a way this annoying pop-up can be turned off?

TIA


Linux Mint 17.2
KMyMoney Version 4.7.2
Using KDE Development Platform 4.14.2
cristian.onet
KDE Developer
Posts
253
Karma
2
OS
mbeenham wrote:When updating stock and currency prices a small window flashes up for every security entitled "Copying" that then disappears before it can be read.

This is not a problem except that updating all the prices seems to take much longer than previously - possibly due to the extra pop-up - and continually returns the focus to KMyMoney even if I minimise it to do something else while prices are updating.

I am not really interested in watching price update progress so if it is not essential is there a way this annoying pop-up can be turned off?

TIA


From what I can tell from my system that dialog comes from the KDE notification system (if you use KDE it's actually not a dialog but a status notification). KMyMoney uses KIO to fetch the prices data and that seems to produce those notifications. Maybe someone from the forum can guide you to a way to turn them off.


cristian.onet, proud to be a member of KDE forums since 2008-Oct.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
These dialogs only appear if KMyMoney hasn't marked it's KIO operations as "Internal" or some other similar flag which means that Plasma will ignore them.

This requires a bug fix in KMyMoney unfortunately - unless of course it already sets this flag on the KIO Jobs it creates - in which case the bug is in either Plasma or kdelibs.


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
mbeenham
Registered Member
Posts
95
Karma
0
OS
Thank you both for clarification.

Question for KMyMoney developers:

Does KMyMoney set KIO Internal" or some other similar flag when it uses KIO to fetch the prices data?

If it doesn't I will raise a bug for KMyMoney so it gets fixed some time since it bugs me...

If its a Plasma or kdelibs issue I'm not sure where or how to start to define the issue...
???

Thanks


Linux Mint 17.2
KMyMoney Version 4.7.2
Using KDE Development Platform 4.14.2
cristian.onet
KDE Developer
Posts
253
Karma
2
OS
We don't explicitly use a KIO job for this task. We use a wrapper KDE library function namely KIO::NetAccess::download() which doesn't take as parameter the KIO job flags.
KIO::Overwrite is hardcoded as a parameter so there is no way to pass KIO::HideProgressInfo also. To do this we would have to duplicate kdelibs code which I'm not sure that it's the best option.


cristian.onet, proud to be a member of KDE forums since 2008-Oct.
User avatar
bcooksley
Administrator
Posts
19765
Karma
87
OS
KIO::NetAccess is quite naughty... to fix this you need to switch to event loop driven code and use KIO::Job I believe. People on kde-core-devel should be able to point you at the appropriate KDE classes to do the same job. It shouldn't require duplicating the code...


KDE Sysadmin
[img]content/bcooksley_sig.png[/img]
cristian.onet
KDE Developer
Posts
253
Karma
2
OS
bcooksley wrote:KIO::NetAccess is quite naughty... to fix this you need to switch to event loop driven code and use KIO::Job I believe.

Besides the notification issue it fits our needs.

bcooksley wrote:People on kde-core-devel should be able to point you at the appropriate KDE classes to do the same job. It shouldn't require duplicating the code...

By duplicating the code I meant that our event loop implementation (which would fix this) would also duplicate the code that already exist in KIO::NetAccess.


cristian.onet, proud to be a member of KDE forums since 2008-Oct.
mbeenham
Registered Member
Posts
95
Karma
0
OS

Re: Update Stock and Currency Prices

Wed Jun 08, 2011 10:02 am
I have posted Bug 275004 via bugzilla regarding the above - waiting on moderator to release it.

Maybe someone will get round to looking at some time but it is not a big issue - only an annoyance and only then when updating a lot of prices.


Linux Mint 17.2
KMyMoney Version 4.7.2
Using KDE Development Platform 4.14.2
User avatar
ipwizard
KDE Developer
Posts
1359
Karma
6
OS

Re: Update Stock and Currency Prices

Wed Jun 08, 2011 10:30 am
It is visible and I turned it into a wishlist item. Thanks for your help.


ipwizard, proud to be a member of the KMyMoney forum since its beginning. :-D
openSuSE Leap 15.4 64bit, KF5


Bookmarks



Who is online

Registered users: Bing [Bot], blue_bullet, Google [Bot], rockscient, Yahoo [Bot]