Browse Source

cmake-gui: trim spaces from user-created variable names

Fixes: #15955
Clinton Stimpson 8 years ago
parent
commit
8f1bce12d2
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Source/QtDialog/AddCacheEntry.cxx

+ 1 - 1
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