Explorar o código

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

Fixes: #15955
Clinton Stimpson %!s(int64=9) %!d(string=hai) anos
pai
achega
8f1bce12d2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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