summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBurkhard Lück <lueck@hube-lueck.de>2011-06-12 20:01:04 (GMT)
committerBurkhard Lück <lueck@hube-lueck.de>2011-06-12 20:01:04 (GMT)
commitf5a4f96df01ddcf32fdc0be01d557e85d66bfca3 (patch)
tree7875238d45e725bdd413d318b514c294d2871c3c
parenta1aee333be3c60950d95e0f1f0ffbbe65d6c4311 (diff)
use proper encoding to allow umlauts (äöü etc) in comments file, approved by rkcosta
BUG:209426
-rw-r--r--konq-plugins/kimgalleryplugin/imgalleryplugin.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/konq-plugins/kimgalleryplugin/imgalleryplugin.cpp b/konq-plugins/kimgalleryplugin/imgalleryplugin.cpp
index fa80eb3..f101982 100644
--- a/konq-plugins/kimgalleryplugin/imgalleryplugin.cpp
+++ b/konq-plugins/kimgalleryplugin/imgalleryplugin.cpp
@@ -238,7 +238,7 @@ void KImGalleryPlugin::createBody(QTextStream& stream, const QString& sourceDirN
}
if (m_useCommentFile) {
- QString imgComment = (*m_commentMap)[imgName].toLocal8Bit();
+ QString imgComment = (*m_commentMap)[imgName];
stream << "<div>" << Qt::escape(imgComment) << "</div>" << endl;
}
stream << "</td>" << endl;
@@ -419,7 +419,7 @@ void KImGalleryPlugin::loadCommentFile()
}
CommentMap::ConstIterator it;
for( it = m_commentMap->constBegin(); it != m_commentMap->constEnd(); ++it ) {
- kDebug(90170) << "picName: " << it.key().toLocal8Bit() << ", picComment: " << it.value().toLocal8Bit();
+ kDebug(90170) << "picName: " << it.key() << ", picComment: " << it.value();
}
file.close();
kDebug(90170) << "File closed.";