diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-06-04 07:30:17 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-06-04 07:59:58 (GMT) |
commit | cbe3119db5380c41d44d4e936c7da4889c02f147 (patch) | |
tree | 255b67f69d28c540235695a87845005902fdff56 /src/gui | |
parent | 289c098c15a359c4e5d142a997230db5df554f8d (diff) | |
download | Qt-cbe3119db5380c41d44d4e936c7da4889c02f147.zip Qt-cbe3119db5380c41d44d4e936c7da4889c02f147.tar.gz Qt-cbe3119db5380c41d44d4e936c7da4889c02f147.tar.bz2 |
BT: Fixes Crash when deleting a QProgressBar which has been styled with QMotifStyle
Same fix as in e9a7e43031d7c1ee712e43be682c4e2c183759c4 but with motif
Reported by https://bugs.kde.org/show_bug.cgi?id=193911
Task-number: 255138
Reviewed-by: jbache
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/styles/qmotifstyle.cpp | 5 |
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 } |