[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec
Maximiliano Curia
maxy at moszumanska.debian.org
Sat May 28 00:24:33 UTC 2016
Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=fe14aac
The following commit has been merged in the master branch:
commit fe14aaca1706b38410d4f9c62a9d75e42d9ba782
Author: Daniele E. Domenichelli <daniele.domenichelli at iit.it>
Date: Sun Apr 13 18:07:37 2014 +0200
Save 1/0 instead of true/false for boolean tags in plist files
Also make the check case insensitive
This fixes a couple of themes using a bool for "MessageViewVersion"
REVIEW: 117547
Reviewed-by: David Edmundson <kde at davidedmundson.co.uk>
---
lib/chat-style-plist-file-reader.cpp | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/lib/chat-style-plist-file-reader.cpp b/lib/chat-style-plist-file-reader.cpp
index 9d6e8d4..9641a66 100644
--- a/lib/chat-style-plist-file-reader.cpp
+++ b/lib/chat-style-plist-file-reader.cpp
@@ -74,8 +74,10 @@ ChatStylePlistFileReader::Status ChatStylePlistFileReader::parse(const QDomDocum
if (keyElements.at(i).nextSibling().toElement().tagName() != QLatin1String("key")) {
key = keyElements.at(i).toElement().text();
QDomElement nextElement= keyElements.at(i).nextSibling().toElement();
- if(nextElement.tagName() == QLatin1String("true") || nextElement.tagName() == QLatin1String("false")) {
- value = nextElement.tagName();
+ if (!nextElement.tagName().compare(QLatin1String("true"), Qt::CaseInsensitive)) {
+ value = QLatin1String("1");
+ } else if(!nextElement.tagName().compare(QLatin1String("false"), Qt::CaseInsensitive)) {
+ value = QLatin1String("0");
} else {
value = nextElement.text();
}
--
ktp-text-ui packaging
More information about the pkg-kde-commits
mailing list