| Summary: | e-mail contains comments file even if there are no comments | ||
|---|---|---|---|
| Product: | [Applications] digikam | Reporter: | David Anderson <david> |
| Component: | Plugin-Generic-SendByMail | Assignee: | Digikam Developers <digikam-bugs-null> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | NOR | ||
| Version First Reported In: | 5.6.0 | ||
| Target Milestone: | --- | ||
| Platform: | unspecified | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | 7.6.0 | |
| Sentry Crash Report: | |||
|
Description
David Anderson
2005-01-15 14:40:13 UTC
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") );
}
+ }
}
|