diff options
author | Clinton Stimpson <clinton@elemtech.com> | 2017-01-17 19:56:21 -0700 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2017-01-20 13:31:09 -0500 |
commit | 8f1bce12d2f8ae2eb3771b173b28b8405b059923 (patch) | |
tree | b2801f6e7b208d78221a6cc39126adb70f2f6418 | |
parent | cab8f26211051a24ceb0e512660f022c9960f241 (diff) | |
download | cmake-8f1bce12d2f8ae2eb3771b173b28b8405b059923.tar.gz |
cmake-gui: trim spaces from user-created variable names
Fixes: #15955
-rw-r--r-- | Source/QtDialog/AddCacheEntry.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/QtDialog/AddCacheEntry.cxx b/Source/QtDialog/AddCacheEntry.cxx index daf4bd17c1..6284ac946c 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 |