Commit d732e581 authored by Kai Koehne's avatar Kai Koehne
Browse files

DebugHelper: Disable 'Build All' button if there isn't anything to build

Task-number: QTCREATORBUG-4176
parent 5c056505
......@@ -575,10 +575,14 @@ 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);
m_debuggingHelperUi->rebuildButton->setEnabled((!isBuildingGdbHelper
&& !isBuildingQmlDumper
&& !isBuildingQmlDebuggingLib
&& !isBuildingQmlObserver)
&& (canBuildGdbHelper
|| canBuildQmlDumper
|| canBuildQmlDebuggingLib
|| canBuildQmlObserver));
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