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

List:       kde-commits
Subject:    branches/work/kdepim-3.5.5+/kpilot/lib
From:       Jason vanRijn Kasper <vR () movingparts ! net>
Date:       2007-03-09 15:08:25
Message-ID: 1173452905.360573.9576.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 640963 by vanrijn:

fixing bug that caused note of 'Location:\n' to be put on all palm records

 M  +2 -1      branches/work/kdepim-3.5.5+/kpilot/lib/pilotDateEntry.cc  


--- branches/work/kdepim-3.5.5+/kpilot/lib/pilotDateEntry.cc #640962:640963
@@ -390,7 +390,8 @@
 	QString note = Pilot::fromPilot(getNoteP());
 	QRegExp rxp = QRegExp("^[Ll]ocation:[^\n]+\n");
 
-	if( s.isNull() || s.isEmpty() )
+	// per QString docs, this covers null and 0 length
+	if( s.isEmpty() )
 	{
 		note.replace(rxp,"");
 	}
[prev in list] [next in list] [prev in thread] [next in thread] 

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