Commit 134e4dee authored by El Mehdi Fekari's avatar El Mehdi Fekari Committed by Mehdi Fekari

Qnx: Disable remove button for pre-10.2 NDKs

Change-Id: Icfbe5d46d0f6e29cfe68be57872fba9c15b5419d
Reviewed-by: default avatarDavid Kaspar <dkaspar@blackberry.com>
Reviewed-by: default avatarTobias Nätterlund <tobias.naetterlund@kdab.com>
Reviewed-by: Nicolas Arnaud-Cormos's avatarNicolas Arnaud-Cormos <nicolas@kdab.com>
parent 4444a788
......@@ -262,7 +262,9 @@ void BlackBerryNDKSettingsWidget::updateUi(QTreeWidgetItem *item, BlackBerryConf
m_ui->activateNdkTargetButton->setEnabled(!m_activatedTargets.contains(config));
m_ui->deactivateNdkTargetButton->setEnabled(m_activatedTargets.contains(config)
&& m_activatedTargets.size() > 1);
m_ui->removeNdkButton->setEnabled(true);
// Disable remove button for auto detected pre-10.2 NDKs (uninstall wizard doesn't handle them)
m_ui->removeNdkButton->setEnabled(!(config->isAutoDetected()
&& QnxUtils::sdkInstallerPath(config->ndkPath()).isEmpty()));
}
void BlackBerryNDKSettingsWidget::uninstallNdkTarget()
......
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