summaryrefslogtreecommitdiff
path: root/src/plugins/projectexplorer/kit.cpp
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@digia.com>2012-11-28 18:09:49 +0100
committerTobias Hunger <tobias.hunger@digia.com>2012-11-29 13:07:29 +0100
commitdccb63b406413e5af7ed0539e8406140125ce78b (patch)
treea0796789bcb5f3b8feca18e95469345be55a185c /src/plugins/projectexplorer/kit.cpp
parent0e7cb4b1c6d342069ef7396f8d507ab9982c3d5e (diff)
downloadqt-creator-dccb63b406413e5af7ed0539e8406140125ce78b.tar.gz
Kits: Do not allow kits with empty names
Change-Id: Id30080cebd7aeb0917516d7d94200f90bd531397 Reviewed-by: Daniel Teske <daniel.teske@digia.com>
Diffstat (limited to 'src/plugins/projectexplorer/kit.cpp')
-rw-r--r--src/plugins/projectexplorer/kit.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/projectexplorer/kit.cpp b/src/plugins/projectexplorer/kit.cpp
index 884082bee0..713402b628 100644
--- a/src/plugins/projectexplorer/kit.cpp
+++ b/src/plugins/projectexplorer/kit.cpp
@@ -219,6 +219,7 @@ void Kit::setDisplayName(const QString &name)
QList<KitInformation *> kitInfo = km->kitInformation();
QStringList nameList;
+ nameList << QString(); // Disallow empty kit names!
foreach (Kit *k, km->kits()) {
if (k == this)
continue;