summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThierry Bastian <thierry.bastian@nokia.com>2009-11-12 10:47:11 (GMT)
committerThierry Bastian <thierry.bastian@nokia.com>2009-11-12 10:47:11 (GMT)
commit4f2dcef95299f2da628b30607021e8deb1d868b6 (patch)
treef0b488adcb00e2457660f17e0b2516b2d27160eb
parent8c13e18eb49ab9ab42db4359f0ccc91de5c72818 (diff)
downloadQt-4f2dcef95299f2da628b30607021e8deb1d868b6.zip
Qt-4f2dcef95299f2da628b30607021e8deb1d868b6.tar.gz
Qt-4f2dcef95299f2da628b30607021e8deb1d868b6.tar.bz2
Fixed a crash when configuring an audio effect with the Phonon dialog
Task-number: QTBUG-5731 Reviewed-by: jan-arve
-rw-r--r--src/3rdparty/phonon/phonon/effectwidget.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/3rdparty/phonon/phonon/effectwidget.cpp b/src/3rdparty/phonon/phonon/effectwidget.cpp
index fb9cf6e..f8341e5 100644
--- a/src/3rdparty/phonon/phonon/effectwidget.cpp
+++ b/src/3rdparty/phonon/phonon/effectwidget.cpp
@@ -97,8 +97,9 @@ void EffectWidgetPrivate::autogenerateUi()
Q_Q(EffectWidget);
QVBoxLayout *mainLayout = new QVBoxLayout(q);
mainLayout->setMargin(0);
- for (int i = 0; i < effect->parameters().count(); ++i) {
- const EffectParameter &para = effect->parameters().at(i);
+ const QList<Phonon::EffectParameter> parameters = effect->parameters();
+ for (int i = 0; i < parameters.count(); ++i) {
+ const EffectParameter &para = parameters.at(i);
QVariant value = effect->parameterValue(para);
QHBoxLayout *pLayout = new QHBoxLayout;
mainLayout->addLayout(pLayout);