attribute editor: return NULL QVariant instead of invalid QVariant

This commit is contained in:
Matthias Kuhn 2013-06-16 13:55:37 +02:00
parent f6ae6c48b3
commit c7a5e0f763

View File

@ -1119,7 +1119,7 @@ bool QgsAttributeEditor::retrieveValue( QWidget *widget, QgsVectorLayer *vl, int
default: //string
modified = true;
if ( text.isNull() )
value = QVariant();
value = QVariant( theField.type() );
else
value = QVariant( text );
break;