Commit 68b027ea authored by Kai Koehne's avatar Kai Koehne

QtOptionsPage: Disable toolchain combo box while building

Change-Id: I4e254bb1b88410161058b3a72d55bd711be36feb
Reviewed-on: http://codereview.qt.nokia.com/2182Reviewed-by: default avatarQt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: default avatarDaniel Teske <daniel.teske@nokia.com>
parent 8d85597a
......@@ -797,14 +797,17 @@ void QtOptionsPageWidget::updateDebuggingHelperUi()
const bool hasLog = currentItem && !currentItem->data(0, BuildLogRole).toString().isEmpty();
m_debuggingHelperUi->showLogButton->setEnabled(hasLog);
m_debuggingHelperUi->rebuildButton->setEnabled((!isBuildingGdbHelper
&& !isBuildingQmlDumper
&& !isBuildingQmlDebuggingLib
&& !isBuildingQmlObserver)
&& (canBuildGdbHelper
|| canBuildQmlDumper
|| (canBuildQmlDebuggingLib && needsQmlDebuggingLib)
|| canBuildQmlObserver));
const bool canBuild = canBuildGdbHelper
|| canBuildQmlDumper
|| (canBuildQmlDebuggingLib && needsQmlDebuggingLib)
|| canBuildQmlObserver;
const bool isBuilding = isBuildingGdbHelper
|| isBuildingQmlDumper
|| isBuildingQmlDebuggingLib
|| isBuildingQmlObserver;
m_debuggingHelperUi->rebuildButton->setEnabled(canBuild && !isBuilding);
m_debuggingHelperUi->toolChainComboBox->setEnabled(canBuild && !isBuilding);
m_ui->debuggingHelperWidget->setVisible(true);
}
......
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