mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
[fix] Variables can't have spaces in name
This commit is contained in:
parent
6441b64a58
commit
cfdfa47da2
@ -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 )
|
||||
|
Loading…
x
Reference in New Issue
Block a user