Skip to content
Permalink
Browse files

editor widget: don't reset empty strings to null, if default value is…

… null (fixes #13546)
  • Loading branch information
jef-n committed Oct 9, 2015
1 parent 910dc16 commit 3beaed9fa1a8100973cd9c5a94119dc6986a5649
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/editorwidgets/qgstexteditwrapper.cpp
@@ -59,7 +59,7 @@ QVariant QgsTextEditWrapper::value()
v == QSettings().value( "qgis/nullValue", "NULL" ).toString() )
return QVariant( field().type() );

if ( v == defaultValue().toString() )
if ( !defaultValue().isNull() && v == defaultValue().toString() )
{
return defaultValue();
}

0 comments on commit 3beaed9

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