Skip to content
Permalink
Browse files

reset model on received data

  • Loading branch information
tomasMizera authored and PeterPetrik committed Nov 17, 2020
1 parent 8f617e4 commit 51399950d22838891a9692574d361a049121f7fc
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/quickgui/plugin/editor/qgsquickvaluerelation.qml
@@ -64,6 +64,7 @@ Item {

if ( Array.isArray(featureIds) && allowMultipleValues )
{
vrModel.searchExpression = "" // to be sure search is empty
// construct JSON-like value list of key column
// { val1, val2, val3, ... }

@@ -108,7 +109,7 @@ Item {

/**
* updateField function updates visible value of current field
* if value to be set is undefined, -1, empty string or similiar, it also resets current value
* if value to be set is undefined, -1, empty string or similar, it also resets current value
*/
function updateField() {
if ( widgetValue == null || widgetValue === "" || widgetValue === -1 ) {

0 comments on commit 5139995

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