Skip to content

Commit ed10647

Browse files
committed
Don't set field value to NULL if multiline text edit has not been edited
1 parent ed14cf3 commit ed10647

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
}

0 commit comments

Comments
 (0)