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 6252943 commit 80ec23f69d661d77737d148e312bda3238075b1c
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/gui/editorwidgets/qgstexteditwidget.cpp
@@ -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();
}

2 comments on commit 80ec23f

@3nids

This comment has been minimized.

Copy link
Member

@3nids 3nids replied Aug 7, 2014

@m-kuhn backport to 2.4?

@m-kuhn

This comment has been minimized.

Copy link
Member Author

@m-kuhn m-kuhn replied Aug 7, 2014

yep, done ed10647

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