Commit 34c79839 authored by Daniel Teske's avatar Daniel Teske Committed by Tobias Hunger
Browse files

QtOptionsPage: Fix check for existing qt version



We need to check the list of the options dialog not the one in the
QtVersionManager

Change-Id: I79668ead5e613e8f98770ea383425804ca3d0950
Reviewed-by: default avatarTobias Hunger <tobias.hunger@digia.com>
parent 3eedd06c
......@@ -641,7 +641,13 @@ void QtOptionsPageWidget::addQtDir()
QFileDialog::DontResolveSymlinks));
if (qtVersion.isNull())
return;
BaseQtVersion *version = QtVersionManager::instance()->qtVersionForQMakeBinary(qtVersion);
BaseQtVersion *version = 0;
foreach (BaseQtVersion *v, m_versions) {
if (v->qmakeCommand() == qtVersion) {
version = v;
break;
}
}
if (version) {
// Already exist
QMessageBox::warning(this, tr("Qt known"),
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment