Skip to content

Commit

Permalink
Attribute Form - value relation widget takes key again instead of value
Browse files Browse the repository at this point in the history
Corrected: Value relation widget update incorrectly tries to use value instead of key

The mapped key has to be set in the return value (not the input value).
In the release-2_18 the key was returned correctly but in another structure. So this is corrected now.
  • Loading branch information
signedav committed Nov 9, 2017
1 parent 0ccf6fa commit 2daae54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/editorwidgets/qgsvaluerelationwidgetwrapper.cpp
Expand Up @@ -66,7 +66,7 @@ QVariant QgsValueRelationWidgetWrapper::value() const
{
if ( item.value == mLineEdit->text() )
{
v = item.value;
v = item.key;
break;
}
}
Expand Down

0 comments on commit 2daae54

Please sign in to comment.