Skip to content

Commit

Permalink
Don't set field value to NULL if multiline text edit has not been edited
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Aug 7, 2014
1 parent 6252943 commit 80ec23f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gui/editorwidgets/qgstexteditwidget.cpp
Expand Up @@ -30,7 +30,7 @@ QVariant QgsTextEditWidget::value()
{
QString v;

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

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

2 comments on commit 80ec23f

@3nids
Copy link
Member

@3nids 3nids commented on 80ec23f Aug 7, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@m-kuhn backport to 2.4?

@m-kuhn
Copy link
Member Author

@m-kuhn m-kuhn commented on 80ec23f Aug 7, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep, done ed10647

Please sign in to comment.