Fixed #154.
This commit is contained in:
parent
1cf8bd517d
commit
2379158610
@ -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:
|
||||
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user