Skip to content
Permalink
Browse files

[fix] Variables can't have spaces in name

  • Loading branch information
NathanW2 authored and nyalldawson committed Mar 19, 2018
1 parent 6441b64 commit cfdfa47da204f2e1fdbda8699f057291329651e7
Showing with 2 additions and 0 deletions.
  1. +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 )

0 comments on commit cfdfa47

Please sign in to comment.
You can’t perform that action at this time.