Fixes updating issue for engines that don't get data right away.

svn path=/trunk/KDE/kdebase/workspace/libs/plasma/; revision=713243
This commit is contained in:
Petri Damstén 2007-09-16 19:34:51 +00:00
parent 3c250783cf
commit 7f7a863442

View File

@ -56,11 +56,11 @@ public:
d(data), d(data),
m_interval(ival), m_interval(ival),
m_align(align), m_align(align),
m_resetTimer(false), m_resetTimer(true),
m_queued(false) m_queued(false)
{ {
//kDebug() << "signal relay with time of" << m_timerId << "being set up"; //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) { if (m_align != Plasma::NoAlignment) {
checkAlignment(); checkAlignment();
} }
@ -145,8 +145,9 @@ protected:
// the source wasn't actually updated; so let's put ourselves in the queue // the source wasn't actually updated; so let's put ourselves in the queue
// so we get an updated() when the data does arrive // so we get an updated() when the data does arrive
m_queued = true; m_queued = true;
} else {
emit updated(dc->objectName(), d->data);
} }
emit updated(dc->objectName(), d->data);
event->accept(); event->accept();
} }
}; };