From 8f1bce12d2f8ae2eb3771b173b28b8405b059923 Mon Sep 17 00:00:00 2001 From: Clinton Stimpson Date: Tue, 17 Jan 2017 19:56:21 -0700 Subject: cmake-gui: trim spaces from user-created variable names Fixes: #15955 --- Source/QtDialog/AddCacheEntry.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/QtDialog/AddCacheEntry.cxx b/Source/QtDialog/AddCacheEntry.cxx index daf4bd1..6284ac9 100644 --- a/Source/QtDialog/AddCacheEntry.cxx +++ b/Source/QtDialog/AddCacheEntry.cxx @@ -46,7 +46,7 @@ AddCacheEntry::AddCacheEntry(QWidget* p, const QStringList& varNames, QString AddCacheEntry::name() const { - return this->Name->text(); + return this->Name->text().trimmed(); } QVariant AddCacheEntry::value() const -- cgit v0.12