# HG changeset patch # User Chris Cannam # Date 1400860086 -3600 # Node ID 037a7c22bec8114c2456460633643e323a9cf52f # Parent c2291e22bf0c29aef6c33420b3654db7deeedfe7 Replace setCurrentText (which doesn't appear to exist in qt4) with setCurrentIndex diff -r c2291e22bf0c -r 037a7c22bec8 widgets/PropertyBox.cpp --- a/widgets/PropertyBox.cpp Thu May 22 17:49:58 2014 +0100 +++ b/widgets/PropertyBox.cpp Fri May 23 16:48:06 2014 +0100 @@ -768,7 +768,13 @@ dialog->setLabelText(tr("Set playback clip:")); QComboBox *cb = dialog->findChild(); - if (cb) cb->setCurrentText(clip); + if (cb) { + for (int i = 0; i < cb->count(); ++i) { + if (cb->itemText(i) == clip) { + cb->setCurrentIndex(i); + } + } + } connect(dialog, SIGNAL(textValueChanged(QString)), this, SLOT(playClipChanged(QString)));