diff options
author | Thierry Bastian <thierry.bastian@nokia.com> | 2009-11-12 10:47:11 (GMT) |
---|---|---|
committer | Jason McDonald <jason.mcdonald@nokia.com> | 2009-11-13 12:40:03 (GMT) |
commit | ed223770eeffa6217e08b26aaca6ee09c0598995 (patch) | |
tree | a3c2d709061ad9f7b4bd931168c9fccc2057cb19 | |
parent | d46726a2ac1cebe60a8d4a4eb9f6ae45b64b4bab (diff) | |
download | Qt-ed223770eeffa6217e08b26aaca6ee09c0598995.zip Qt-ed223770eeffa6217e08b26aaca6ee09c0598995.tar.gz Qt-ed223770eeffa6217e08b26aaca6ee09c0598995.tar.bz2 |
Fixed a crash when configuring an audio effect with the Phonon dialog
Task-number: QTBUG-5731
Reviewed-by: jan-arve
(cherry picked from commit 4f2dcef95299f2da628b30607021e8deb1d868b6)
-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 c5963eb..2334d7f 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); |