From d94b87d4aa7f4569aee06e2ae353aaa14ec9e9fd Mon Sep 17 00:00:00 2001 From: Martin Rotter Date: Fri, 18 Dec 2015 19:12:07 +0100 Subject: [PATCH] Fixed #137. --- resources/text/CHANGELOG | 4 ++++ src/services/tt-rss/ttrssserviceroot.cpp | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/resources/text/CHANGELOG b/resources/text/CHANGELOG index 9d148e3df..2c716aa84 100755 --- a/resources/text/CHANGELOG +++ b/resources/text/CHANGELOG @@ -7,6 +7,10 @@ Added: ▪ Auto-update setting of individual Tiny Tiny RSS feeds can now be changed. ▪ RSS Guard is now useable as external RSS reader by common web browsers like Firefox etc. (issue #135) +Fixed: + +▪ Problem with adding/editing TT-RSS accounts. (bug #137) + 3.0.0 ————— diff --git a/src/services/tt-rss/ttrssserviceroot.cpp b/src/services/tt-rss/ttrssserviceroot.cpp index 3a244527d..cf968d8bd 100755 --- a/src/services/tt-rss/ttrssserviceroot.cpp +++ b/src/services/tt-rss/ttrssserviceroot.cpp @@ -431,10 +431,10 @@ void TtRssServiceRoot::saveAccountDataToDatabase() { query.bindValue(QSL(":username"), m_network->username()); query.bindValue(QSL(":password"), TextFactory::encrypt(m_network->password())); query.bindValue(QSL(":url"), m_network->url()); - query.bindValue(QSL(":auth_protected"), m_network->authIsUsed()); + query.bindValue(QSL(":auth_protected"), (int) m_network->authIsUsed()); query.bindValue(QSL(":auth_username"), m_network->authUsername()); query.bindValue(QSL(":auth_password"), TextFactory::encrypt(m_network->authPassword())); - query.bindValue(QSL(":force_update"), m_network->forceServerSideUpdate()); + query.bindValue(QSL(":force_update"), (int) m_network->forceServerSideUpdate()); query.bindValue(QSL(":id"), accountId()); if (query.exec()) { @@ -470,11 +470,11 @@ void TtRssServiceRoot::saveAccountDataToDatabase() { query.bindValue(QSL(":id"), id_to_assign); query.bindValue(QSL(":username"), m_network->username()); query.bindValue(QSL(":password"), TextFactory::encrypt(m_network->password())); - query.bindValue(QSL(":auth_protected"), m_network->authIsUsed()); + query.bindValue(QSL(":auth_protected"), (int) m_network->authIsUsed()); query.bindValue(QSL(":auth_username"), m_network->authUsername()); query.bindValue(QSL(":auth_password"), TextFactory::encrypt(m_network->authPassword())); query.bindValue(QSL(":url"), m_network->url()); - query.bindValue(QSL(":force_update"), m_network->forceServerSideUpdate()); + query.bindValue(QSL(":force_update"), (int) m_network->forceServerSideUpdate()); saved &= query.exec();