[Kde-imaging] [Bug 97069] e-mail contains comments file even if
there are no comments
Renchi Raju
renchi at pooh.tam.uiuc.edu
Sat Jan 22 01:03:33 CET 2005
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
http://bugs.kde.org/show_bug.cgi?id=97069
renchi pooh tam uiuc edu changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |FIXED
------- Additional Comments From renchi pooh tam uiuc edu 2005-01-22 01:03 -------
CVS commit by pahlibar:
don't add the comments file if there are no comments
BUG: 97069
M +34 -27 sendimages.cpp 1.20
--- kdeextragear-libs-1/kipi-plugins/sendimages/sendimages.cpp #1.19:1.20
@ -247,4 +247,6 @ void SendImages::makeCommentsFile(void)
KURL::List::Iterator it = m_imagesPackage.begin();
+ bool anyCommentsPresent = false;
+
while( it != m_imagesPackage.end() )
{
@ -257,4 +259,6 @ void SendImages::makeCommentsFile(void)
if ( commentItem.isEmpty() )
commentItem = i18n("no comment");
+ else
+ anyCommentsPresent = true;
ImageCommentsText = ImageCommentsText +
@ -265,4 +269,6 @ void SendImages::makeCommentsFile(void)
}
+ if ( anyCommentsPresent )
+ {
QFile commentsFile( m_tmp + i18n("comments.txt") );
QTextStream stream( &commentsFile );
@ -273,4 +279,5 @ void SendImages::makeCommentsFile(void)
m_filesSendList.append( m_tmp + i18n("comments.txt") );
}
+ }
}
More information about the Kde-imaging
mailing list