diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-11-12 10:47:11 (GMT) |
---|---|---|
committer | Thierry Bastian <thierry.bastian@nokia.com> | 2009-11-12 10:47:11 (GMT) |
commit | 4f2dcef95299f2da628b30607021e8deb1d868b6 (patch) | |
tree | f0b488adcb00e2457660f17e0b2516b2d27160eb | |
parent | 8c13e18eb49ab9ab42db4359f0ccc91de5c72818 (diff) | |
download | Qt-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.cpp | 5 |
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 ¶ = effect->parameters().at(i); + const QList<Phonon::EffectParameter> parameters = effect->parameters(); + for (int i = 0; i < parameters.count(); ++i) { + const EffectParameter ¶ = parameters.at(i); QVariant value = effect->parameterValue(para); QHBoxLayout *pLayout = new QHBoxLayout; mainLayout->addLayout(pLayout); |