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

List:       kde-commits
Subject:    branches/KDE/4.5/kdebase/workspace/plasma/generic/applets/notifications/protocols/jobs
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2010-09-04 19:08:06
Message-ID: 20100904190806.0222BAC884 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1171651 by aseigo:

jobs need to be explicitly destroyed; not overly fond of that design decision, but \
this works and doesn't need to be generically usable BUG:250034


 M  +7 -0      dbusjobprotocol.cpp  


--- branches/KDE/4.5/kdebase/workspace/plasma/generic/applets/notifications/protocols/jobs/dbusjobprotocol.cpp \
#1171650:1171651 @@ -42,9 +42,16 @@
     if (m_engine) {
         Plasma::DataEngineManager::self()->unloadEngine(engineName);
     }
+
+    foreach (DBusJob *job, m_jobs) {
+        disconnect(job);
+        job->destroy();
 }
 
+    m_jobs.clear();
+}
 
+
 void DBusJobProtocol::init()
 {
     m_engine = Plasma::DataEngineManager::self()->loadEngine(engineName);


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

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