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

Fixes: #15955
This commit is contained in:
Clinton Stimpson
2017-01-17 19:56:21 -07:00
committed by Brad King
parent cab8f26211
commit 8f1bce12d2

View File

@@ -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