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

List:       kde-commits
Subject:    branches/KDE/4.3/kdeplasma-addons/applets/microblog
From:       Aaron J. Seigo <aseigo () kde ! org>
Date:       2009-08-03 17:43:18
Message-ID: 1249321398.586171.27981.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 1006404 by aseigo:

backport: this method gets called from a signal from the job which is part of the \
service, so deleteLater the service otherwise we delete the job in the middle of one \
of its methods! BUG:202364


 M  +6 -2      microblog.cpp  


--- branches/KDE/4.3/kdeplasma-addons/applets/microblog/microblog.cpp \
#1006403:1006404 @@ -810,7 +810,9 @@
     m_engine->connectSource(query, this, m_historyRefresh * 60 * 1000);
     m_engine->connectSource("Error:" + query, this);
 
-    delete m_service;
+    if (m_service) {
+        m_service->deleteLater();
+    }
     m_service = m_engine->serviceForSource(m_curTimeline);
     connect(m_service, SIGNAL(finished(Plasma::ServiceJob*)), this, \
SLOT(serviceFinished(Plasma::ServiceJob*)));  KConfigGroup cg = \
m_service->operationDescription("auth"); @@ -823,7 +825,9 @@
     m_engine->connectSource(m_imageQuery, this);
     m_engine->connectSource(profileQuery, this, m_historyRefresh * 60 * 1000);
 
-    delete m_profileService;
+    if (m_profileService) {
+        m_profileService->deleteLater();
+    }
     m_profileService = m_engine->serviceForSource(profileQuery);
     connect(m_profileService, SIGNAL(finished(Plasma::ServiceJob*)), this, \
                SLOT(serviceFinished(Plasma::ServiceJob*)));
     KConfigGroup profileConf = m_profileService->operationDescription("auth");


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

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