Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[fix] Variables can't have spaces in name
- Loading branch information
Showing
with
2 additions
and
0 deletions.
-
+2
−0
src/gui/qgsvariableeditorwidget.cpp
|
@@ -719,6 +719,8 @@ void VariableEditorDelegate::setModelData( QWidget *widget, QAbstractItemModel * |
|
|
{ |
|
|
//edited variable name |
|
|
QString newName = lineEdit->text(); |
|
|
newName = newName.trimmed(); |
|
|
newName = newName.replace( QStringLiteral( " " ), "_" ); |
|
|
|
|
|
//test for validity |
|
|
if ( newName == variableName ) |
|
|