summaryrefslogtreecommitdiffstats
path: root/src/gui/styles/qmotifstyle.cpp
diff options
context:
space:
mode:
authorMiikka Heikkinen <miikka.heikkinen@digia.com>2009-06-08 07:01:15 (GMT)
committerMiikka Heikkinen <miikka.heikkinen@digia.com>2009-06-08 07:01:15 (GMT)
commit23ae8b6badfd688f962590268a6147771d27266c (patch)
treefc27f20c32e6dccbe39267214e65528b238ced70 /src/gui/styles/qmotifstyle.cpp
parent768cab51239a45f00d5ee3857efecd3d2cdcb99b (diff)
parentd4257360234a967bfbacde92ec2bb1ac8979b793 (diff)
downloadQt-23ae8b6badfd688f962590268a6147771d27266c.zip
Qt-23ae8b6badfd688f962590268a6147771d27266c.tar.gz
Qt-23ae8b6badfd688f962590268a6147771d27266c.tar.bz2
Merge branch 'master' of git@scm.dev.troll.no:qt/qt-s60-public
Diffstat (limited to 'src/gui/styles/qmotifstyle.cpp')
-rw-r--r--src/gui/styles/qmotifstyle.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/gui/styles/qmotifstyle.cpp b/src/gui/styles/qmotifstyle.cpp
index 7d4fab8..d19750f 100644
--- a/src/gui/styles/qmotifstyle.cpp
+++ b/src/gui/styles/qmotifstyle.cpp
@@ -298,8 +298,11 @@ void QMotifStyle::unpolish(QWidget* widget)
{
QCommonStyle::unpolish(widget);
#ifndef QT_NO_PROGRESSBAR
- if (qobject_cast<QProgressBar *>(widget))
+ if (qobject_cast<QProgressBar *>(widget)) {
+ Q_D(QMotifStyle);
widget->removeEventFilter(this);
+ d->bars.removeAll(static_cast<QProgressBar*>(widget));
+ }
#endif
}