From 6e8e615e735e1ee3ea7b032da0a7acfb0248658e Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Thu, 8 Jan 2009 11:27:39 +0000 Subject: [PATCH] don't create "QEventDispatcherUNIX::unregisterTimer: invalid argument" svn path=/trunk/KDE/kdelibs/; revision=907536 --- widgets/busywidget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/widgets/busywidget.cpp b/widgets/busywidget.cpp index efbc7005d..e92354993 100644 --- a/widgets/busywidget.cpp +++ b/widgets/busywidget.cpp @@ -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(); }