[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 188064] listAllEngines() sometimes returns empty list
From:       "Aaron J.Seigo" <aseigo () kde ! org>
Date:       2009-03-26 20:41:00
Message-ID: 20090326204100.E66E315285 () immanuel ! kde ! org
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=188064


Aaron J. Seigo <aseigo@kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |aseigo@kde.org




--- Comment #2 from Aaron J. Seigo <aseigo kde org>  2009-03-26 21:40:59 ---
listAllEngines just does a KServiceTypeTrader call:

 KService::List offers = KServiceTypeTrader::self()->query("Plasma/DataEngine",
                                                              constraint);

if there's an error (versus just an empty set returned) you should get some
debut output to that effect on console as well.

it might be interesting to see what's up in KServiceTypeTrader there; however,
it would seem to me to make more sense to do something like what Plasma::Applet
does and keep track of the DataEngines loaded by your objects and unload them
when they exit. that way you don't even need the list afterwards.

looking at the code, however, this all seems a bit superfluous. the dataEngine
is ref'd when an applet loads it, and unrefed when the applet is done with it
(e.g. when it is deleted). so perhaps the real issue here is that applets
aren't getting deleted on exit?

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic