summaryrefslogtreecommitdiffstats
path: root/Source/QtDialog
diff options
context:
space:
mode:
authorClinton Stimpson <clinton@elemtech.com>2017-01-18 02:56:21 (GMT)
committerBrad King <brad.king@kitware.com>2017-01-20 18:31:09 (GMT)
commit8f1bce12d2f8ae2eb3771b173b28b8405b059923 (patch)
treeb2801f6e7b208d78221a6cc39126adb70f2f6418 /Source/QtDialog
parentcab8f26211051a24ceb0e512660f022c9960f241 (diff)
downloadCMake-8f1bce12d2f8ae2eb3771b173b28b8405b059923.zip
CMake-8f1bce12d2f8ae2eb3771b173b28b8405b059923.tar.gz
CMake-8f1bce12d2f8ae2eb3771b173b28b8405b059923.tar.bz2
cmake-gui: trim spaces from user-created variable names
Fixes: #15955
Diffstat (limited to 'Source/QtDialog')
-rw-r--r--Source/QtDialog/AddCacheEntry.cxx2
1 files changed, 1 insertions, 1 deletions
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