Make restoring of messages work for TT-RSS

This commit is contained in:
Martin Rotter 2016-01-19 13:15:41 +01:00
parent 4ccbcbe394
commit d8217266ef
5 changed files with 20 additions and 6 deletions

View File

@ -65,8 +65,8 @@ project(rssguard)
set(APP_NAME "RSS Guard")
set(APP_LOW_NAME "rssguard")
set(APP_VERSION "3.0.2")
set(FILE_VERSION "3,0,2,0")
set(APP_VERSION "3.1.0")
set(FILE_VERSION "3,1,0,0")
set(APP_AUTHOR "Martin Rotter")
set(APP_URL "http://bitbucket.org/skunkos/rssguard")
set(APP_URL_ISSUES "http://bitbucket.org/skunkos/rssguard/issues")

View File

@ -1,3 +1,10 @@
3.1.0
—————
Changed:
▪ TT-RSS plugin can now restore messages from local recycle bin.
3.0.2
—————

View File

@ -110,7 +110,7 @@ QList<Message> ServiceRoot::undeletedMessages() const {
return messages;
}
void ServiceRoot::itemChanged(const QList<RootItem *> &items) {
void ServiceRoot::itemChanged(const QList<RootItem*> &items) {
emit dataChanged(items);
}

View File

@ -498,7 +498,6 @@ bool StandardServiceRoot::onAfterSetMessagesRead(RootItem *selected_item, const
Q_UNUSED(read)
selected_item->updateCounts(false);
itemChanged(QList<RootItem*>() << selected_item);
return true;
}

View File

@ -275,11 +275,19 @@ bool TtRssServiceRoot::onAfterMessagesDelete(RootItem *selected_item, const QLis
}
bool TtRssServiceRoot::onBeforeMessagesRestoredFromBin(RootItem *selected_item, const QList<Message> &messages) {
return false;
Q_UNUSED(selected_item)
Q_UNUSED(messages)
return true;
}
bool TtRssServiceRoot::onAfterMessagesRestoredFromBin(RootItem *selected_item, const QList<Message> &messages) {
return false;
Q_UNUSED(selected_item)
Q_UNUSED(messages)
updateCounts(true);
itemChanged(getSubTree());
return true;
}
TtRssNetworkFactory *TtRssServiceRoot::network() const {