From 7f7a863442c42965bd1a17981d4c7593762e0ae7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petri=20Damst=C3=A9n?= Date: Sun, 16 Sep 2007 19:34:51 +0000 Subject: [PATCH] Fixes updating issue for engines that don't get data right away. svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=713243 --- datacontainer_p.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/datacontainer_p.h b/datacontainer_p.h index 530020bbf..16e805d03 100644 --- a/datacontainer_p.h +++ b/datacontainer_p.h @@ -56,11 +56,11 @@ public: d(data), m_interval(ival), m_align(align), - m_resetTimer(false), + m_resetTimer(true), m_queued(false) { //kDebug() << "signal relay with time of" << m_timerId << "being set up"; - m_timerId = startTimer(m_interval); + m_timerId = startTimer(0); if (m_align != Plasma::NoAlignment) { checkAlignment(); } @@ -145,8 +145,9 @@ protected: // the source wasn't actually updated; so let's put ourselves in the queue // so we get an updated() when the data does arrive m_queued = true; + } else { + emit updated(dc->objectName(), d->data); } - emit updated(dc->objectName(), d->data); event->accept(); } };