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

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

SVN commit 762477 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. 

CCMAIL:155899-done@bugs.kde.org
CCMAIL:kexi@kde.org



 M  +1 -1      kexitableviewdata.cpp  


--- branches/koffice/1.6/koffice/kexi/widget/tableview/kexitableviewdata.cpp \
#762476:762477 @@ -628,7 +628,7 @@
 //(taken here for optimization)
 #define GET_VALUE if (!val) { \
 	val = m_cursor \
-				? m_pRowEditBuffer->at( *it_f.current()->columnInfo, true /* \
useDefaultValueIfPossible */ ) \ +				? m_pRowEditBuffer->at( \
*it_f.current()->columnInfo, (*it_r).isNull() /* useDefaultValueIfPossible */ ) \  : \
m_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