Skip to content

Commit 80ec23f

Browse files
committedAug 7, 2014
Don't set field value to NULL if multiline text edit has not been edited
1 parent 6252943 commit 80ec23f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/gui/editorwidgets/qgstexteditwidget.cpp‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ QVariant QgsTextEditWidget::value()
3030
{
3131
QString v;
3232

33-
if ( mTextEdit && mTextEdit->document()->isModified() )
33+
if ( mTextEdit )
3434
{
3535
if ( config( "UseHtml" ).toBool() )
3636
{
@@ -42,7 +42,7 @@ QVariant QgsTextEditWidget::value()
4242
}
4343
}
4444

45-
if ( mPlainTextEdit && mPlainTextEdit->document()->isModified() )
45+
if ( mPlainTextEdit )
4646
{
4747
v = mPlainTextEdit->toPlainText();
4848
}

2 commit comments

Comments
 (2)

3nids commented on Aug 7, 2014

@3nids
Member

@m-kuhn backport to 2.4?

m-kuhn commented on Aug 7, 2014

@m-kuhn
MemberAuthor

yep, done ed10647

Please sign in to comment.