aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChristian Kandeler <christian.kandeler@qt.io>2019-07-15 15:54:19 +0200
committerChristian Kandeler <christian.kandeler@qt.io>2019-07-15 14:05:00 +0000
commit9c39956eab2439d32f3991e1bee5d762e1333cfb (patch)
treed6b8da922b7cec4d1b34c5f176ee51760edf41e6 /src
parentdcb1e8300218411ba0cb591898f7631b123a4b7d (diff)
Project tree: Add warning icon to unconfigured project
Task-number: QTCREATORBUG-22682 Change-Id: Ia44a1a518aa842cd13feae945dd87b9318d51f6e Reviewed-by: André Hartmann <aha_1980@gmx.de>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/projectexplorer/projectmodels.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/plugins/projectexplorer/projectmodels.cpp b/src/plugins/projectexplorer/projectmodels.cpp
index c3df0688ae..d78db7b2ae 100644
--- a/src/plugins/projectexplorer/projectmodels.cpp
+++ b/src/plugins/projectexplorer/projectmodels.cpp
@@ -148,7 +148,9 @@ QVariant FlatModel::data(const QModelIndex &index, int role) const
static QIcon warnIcon = Utils::Icons::WARNING.icon();
static QIcon emptyIcon = Utils::Icons::EMPTY16.icon();
if (project) {
- if (project->isParsing())
+ if (project->needsConfiguration())
+ result = warnIcon;
+ else if (project->isParsing())
result = emptyIcon;
else if (!project->activeTarget()
|| !project->projectIssues(project->activeTarget()->kit()).isEmpty())
@@ -180,7 +182,7 @@ QVariant FlatModel::data(const QModelIndex &index, int role) const
break;
}
case Project::isParsingRole: {
- result = project ? project->isParsing() : false;
+ result = project ? project->isParsing() && !project->needsConfiguration() : false;
break;
}
}