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

List:       kde-commits
Subject:    branches/KDE/3.3/kdepim/kalarm
From:       David Jarvie <software () astrojar ! org ! uk>
Date:       2005-10-23 22:16:26
Message-ID: 1130105786.690672.24827.nullmailer () svn ! kde ! org
[Download RAW message or body]

SVN commit 473510 by djarvie:

Don't discard result from QString::stripWhiteSpace()

 M  +1 -4      editdlg.cpp  
 M  +2 -2      kamail.cpp  


--- branches/KDE/3.3/kdepim/kalarm/editdlg.cpp #473509:473510
@@ -1592,10 +1592,7 @@
 	else if (mEmailRadio->isOn())
 		result = mEmailMessageEdit->text();
 	else if (mCommandRadio->isOn())
-	{
-		result = mCommandMessageEdit->text();
-		result.stripWhiteSpace();
-	}
+		result = mCommandMessageEdit->text().stripWhiteSpace();
 	else if (mFileRadio->isOn())
 	{
 		QString alarmtext = mFileMessageEdit->text();
--- branches/KDE/3.3/kdepim/kalarm/kamail.cpp #473509:473510
@@ -1,7 +1,7 @@
 /*
  *  kamail.cpp  -  email functions
  *  Program:  kalarm
- *  (C) 2002 - 2004 by David Jarvie <software@astrojar.org.uk>
+ *  (C) 2002 - 2005 by David Jarvie <software@astrojar.org.uk>
  *
  *  This program is free software; you can redistribute it and/or modify
  *  it under the terms of the GNU General Public License as published by
@@ -586,7 +586,7 @@
 */
 int KAMail::checkAttachment(QString& attachment, KURL* url)
 {
-	attachment.stripWhiteSpace();
+	attachment = attachment.stripWhiteSpace();
 	if (attachment.isEmpty())
 	{
 		if (url)
[prev in list] [next in list] [prev in thread] [next in thread] 

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