OSDN Git Service

QtOptionsPage: Fix disabled buttons after "Build All" for helpers
authorKai Koehne <kai.koehne@nokia.com>
Wed, 19 Oct 2011 10:23:56 +0000 (12:23 +0200)
committerKai Koehne <kai.koehne@nokia.com>
Wed, 19 Oct 2011 11:34:28 +0000 (13:34 +0200)
Remove unbuildable helpers in the table of current ongoing builds.

Task-number: QTCREATORBUG-6320
Change-Id: I55c73a868c87d8cd382e4bbae3ed507dc7ed052b
Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
src/plugins/qtsupport/qtoptionspage.cpp

index b9bdcc1..e6a808a 100644 (file)
@@ -467,6 +467,9 @@ void QtOptionsPageWidget::buildDebuggingHelper(DebuggingHelperBuildTask::Tools t
     if (index < 0)
         return;
 
+    // remove tools that cannot be build
+    tools &= DebuggingHelperBuildTask::availableTools(currentVersion());
+
     QTreeWidgetItem *item = treeItemForIndex(index);
     QTC_ASSERT(item, return);