We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent de69932 commit 2d267f1Copy full SHA for 2d267f1
src/gui/qgsfieldmodel.cpp
@@ -109,6 +109,10 @@ QModelIndex QgsFieldModel::setExpression( const QString &expression )
109
if ( !mAllowExpression )
110
return QModelIndex();
111
112
+ QModelIndex idx = indexFromName( expression );
113
+ if ( idx.isValid() )
114
+ return idx;
115
+
116
beginResetModel();
117
mExpression = QList<QString>() << expression;
118
endResetModel();
0 commit comments