Skip to content
Permalink
Browse files
Don't set field value to NULL if multiline text edit has not been edited
  • Loading branch information
m-kuhn committed Aug 7, 2014
1 parent ed14cf3 commit ed10647
Showing 1 changed file with 2 additions and 2 deletions.
@@ -30,7 +30,7 @@ QVariant QgsTextEditWidget::value()
{
QString v;

if ( mTextEdit && mTextEdit->document()->isModified() )
if ( mTextEdit )
{
if ( config( "UseHtml" ).toBool() )
{
@@ -42,7 +42,7 @@ QVariant QgsTextEditWidget::value()
}
}

if ( mPlainTextEdit && mPlainTextEdit->document()->isModified() )
if ( mPlainTextEdit )
{
v = mPlainTextEdit->toPlainText();
}

0 comments on commit ed10647

Please sign in to comment.