Package: qgis / 2.4.0-1

0001-Don-t-set-field-value-to-NULL-if-multiline-text-edit.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
From ed106474ce5c39aa2b7fd089134af955b0cc5e2f Mon Sep 17 00:00:00 2001
From: Matthias Kuhn <matthias.kuhn@gmx.ch>
Date: Thu, 7 Aug 2014 09:24:39 +0200
Subject: Don't set field value to NULL if multiline text edit has not been
 edited
Origin: https://github.com/qgis/QGIS/commit/ed106474ce5c39aa2b7fd089134af955b0cc5e2f


--- a/src/gui/editorwidgets/qgstexteditwidget.cpp
+++ b/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();
   }