This commit is contained in:
Martin Rotter 2016-01-25 11:18:03 +01:00
parent 1cf8bd517d
commit 2379158610
4 changed files with 4 additions and 3 deletions

View File

@ -13,6 +13,7 @@ Added:
Fixed:
▪ Fixed some problems, that "Add category to selected account" was enabled when it shouldn't be.
▪ ♥ Auto-updating of feeds fixed (again?!). ♥
▪ Fixed problem with adding feeds in TT-RSS accounts. (bug #154)
Changed:

View File

@ -33,7 +33,7 @@
// Subscribe to feed.
#define STF_UNKNOWN -1
#define STF_UPDATED 0
#define STF_EXISTS 0
#define STF_INVALID_URL 2
#define STF_UNREACHABLE_URL 5
#define STF_URL_NO_FEED 3

View File

@ -218,7 +218,7 @@ void FormEditFeed::addNewFeed() {
m_ui->m_txtUsername->lineEdit()->text(),
m_ui->m_txtPassword->lineEdit()->text());
if (response.code() == STF_INSERTED || response.code() == STF_UPDATED) {
if (response.code() == STF_INSERTED) {
// Feed was added online.
accept();
qApp->showGuiMessage(tr("Feed added"), tr("Feed was added, triggering sync in now."), QSystemTrayIcon::Information);

View File

@ -575,7 +575,7 @@ TtRssSubscribeToFeedResponse::~TtRssSubscribeToFeedResponse() {
int TtRssSubscribeToFeedResponse::code() const {
if (m_rawContent.contains(QSL("content"))) {
return m_rawContent["content"].toMap()["code"].toInt();
return m_rawContent["content"].toMap()["status"].toMap()["code"].toInt();
}
else {
return STF_UNKNOWN;