summaryrefslogtreecommitdiff
path: root/fetchforumsaction.cpp
diff options
context:
space:
mode:
authorJavier S. Pedro <maemo@javispedro.com>2013-04-06 17:42:47 +0200
committerJavier S. Pedro <maemo@javispedro.com>2013-04-06 17:42:47 +0200
commitb04a2a981a91ed58e55a275402cb2f9f73bd85a2 (patch)
tree1fc1690f78fb40de214bc95361dff5fcbe516d0c /fetchforumsaction.cpp
parenta4626f5306ed3c5e52c28bb49d61ec50c7c2f329 (diff)
downloadtapasboard-b04a2a981a91ed58e55a275402cb2f9f73bd85a2.tar.gz
tapasboard-b04a2a981a91ed58e55a275402cb2f9f73bd85a2.zip
timezone issue was tapatalk plugin bug, so remove workaround
Diffstat (limited to 'fetchforumsaction.cpp')
-rw-r--r--fetchforumsaction.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/fetchforumsaction.cpp b/fetchforumsaction.cpp
index 8bbe23b..814ae02 100644
--- a/fetchforumsaction.cpp
+++ b/fetchforumsaction.cpp
@@ -58,8 +58,8 @@ void FetchForumsAction::handleFinishedCall()
query.bindValue(":forum_id", forum_id);
query.bindValue(":parent_id", parent_id);
- query.bindValue(":forum_name", unencodeForumText(map["forum_name"]));
- query.bindValue(":description", unencodeForumText(map["description"]));
+ query.bindValue(":forum_name", decodeForumText(map["forum_name"]));
+ query.bindValue(":description", decodeForumText(map["description"]));
query.bindValue(":logo_url", map["logo_url"].toString());
query.bindValue(":new_post", map["new_post"].toBool() ? 1 : 0);
query.bindValue(":is_protected", map["is_protected"].toBool() ? 1 : 0);
@@ -109,7 +109,7 @@ QList<QVariantMap> FetchForumsAction::flattenForumList(const QVariantList &list,
return flattened;
}
-QString FetchForumsAction::unencodeForumText(const QVariant &v)
+QString FetchForumsAction::decodeForumText(const QVariant &v)
{
QByteArray ba = v.toByteArray();
return QString::fromUtf8(ba.constData(), ba.length());