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

List:       kde-commits
Subject:    proko2: kdepim/kresources/kolab/shared
From:       Bo Thorsen <bo () sonofthor ! dk>
Date:       2004-08-12 12:29:32
Message-ID: 20040812122932.693CA926D () office ! kde ! org
[Download RAW message or body]

CVS commit by thorsen: 

Only write tags that actually have something in them


  M +6 -4      kolabbase.cpp   1.1.2.13


--- kdepim/kresources/kolab/shared/kolabbase.cpp  #1.1.2.12:1.1.2.13
@@ -385,7 +385,9 @@ void KolabBase::writeString( QDomElement
                              const QString& tagString )
 {
+  if ( !tagString.isEmpty() ) {
   QDomElement e = element.ownerDocument().createElement( tag );
   QDomText t = element.ownerDocument().createTextNode( tagString );
   e.appendChild( t );
   element.appendChild( e );
+  }
 }


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

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