mirror of
https://github.com/martinrotter/rssguard.git
synced 2024-12-31 18:37:30 +01:00
Make restoring of messages work for TT-RSS
This commit is contained in:
parent
4ccbcbe394
commit
d8217266ef
@ -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")
|
||||
|
@ -1,3 +1,10 @@
|
||||
3.1.0
|
||||
—————
|
||||
|
||||
Changed:
|
||||
|
||||
▪ TT-RSS plugin can now restore messages from local recycle bin.
|
||||
|
||||
3.0.2
|
||||
—————
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user