don't create "QEventDispatcherUNIX::unregisterTimer: invalid argument"

svn path=/trunk/KDE/kdelibs/; revision=907536
This commit is contained in:
Stephan Kulow 2009-01-08 11:27:39 +00:00
parent 6156b46110
commit 6e8e615e73

View File

@ -137,12 +137,14 @@ void BusyWidget::showEvent(QShowEvent *event)
void BusyWidget::hideEvent(QHideEvent *event)
{
Q_UNUSED(event)
killTimer(d->timerId);
if (d->timerId)
killTimer(d->timerId);
d->timerId = 0;
}
void BusyWidget::resizeEvent(QGraphicsSceneResizeEvent *event)
{
Q_UNUSED(event)
d->frames.clear();
}