[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    koffice/kexi/widget/tableview
From:       Jaroslaw Staniek <js () iidea ! pl>
Date:       2008-01-17 8:39:02
Message-ID: 1200559142.840505.25654.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 762479 by staniek:

A fix for data editing
- When a default value is specified for an field with 'required' flag,
  it was not only applied when a new row is created,
  but also when an existing row is edited,
  thus overwriting the existing value.

(from 1.x)



 M  +1 -1      kexitableviewdata.cpp  


--- trunk/koffice/kexi/widget/tableview/kexitableviewdata.cpp #762478:762479
@@ -585,7 +585,7 @@
 //(taken here for optimization)
 #define GET_VALUE if (!val) { \
 	val = d->cursor \
-				? d->pRowEditBuffer->at( *(*it_f)->columnInfo(), true /* \
useDefaultValueIfPossible */ ) \ +				? d->pRowEditBuffer->at( \
*(*it_f)->columnInfo(), (*it_r).isNull() /* useDefaultValueIfPossible */ ) \  : \
d->pRowEditBuffer->at( *f ); \  if (!val) \
 		val = &(*it_r); /* get old value */ \


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic