summaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2017-01-24 19:45:22 (GMT)
committerCMake Topic Stage <kwrobot@kitware.com>2017-01-24 19:45:22 (GMT)
commit6c99ec5bfdc9710355e3318cb9884638ea2ce925 (patch)
treed3f36cd6c8869d82377d9e4ab5068d79a687083a /Source
parent0e990a01f15dfcddebc24ca018d4695209226132 (diff)
parent8f1bce12d2f8ae2eb3771b173b28b8405b059923 (diff)
downloadCMake-6c99ec5bfdc9710355e3318cb9884638ea2ce925.zip
CMake-6c99ec5bfdc9710355e3318cb9884638ea2ce925.tar.gz
CMake-6c99ec5bfdc9710355e3318cb9884638ea2ce925.tar.bz2
Merge topic 'qtdialog-trim-new-varname'
8f1bce12 cmake-gui: trim spaces from user-created variable names
Diffstat (limited to 'Source')
-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