Fixed #141, fixed #139.

This commit is contained in:
Martin Rotter 2016-01-03 09:54:42 +01:00
parent 47ef610816
commit fa3ea1fcc8
5 changed files with 13 additions and 1 deletions

View File

@ -5,6 +5,8 @@ Fixed:
▪ Fixed problem with importing invalid OPML 2.0 files. (bug #145)
▪ Fixed error in SQL initialization script which led to problems with in-memory SQLite DBs. (bug #140)
▪ Fixed problem with saving sort column/order for message list. (bug #141)
▪ Fixed problem with reloading feeds with newly downloaded messages when read-only-visible feeds filter is activated. (bug #139)
3.0.1
—————

View File

@ -559,4 +559,5 @@ void MessagesView::adjustColumns() {
void MessagesView::saveSortState(int column, Qt::SortOrder order) {
qApp->settings()->setValue(GROUP(GUI), GUI::DefaultSortColumnMessages, column);
qApp->settings()->setValue(GROUP(GUI), GUI::DefaultSortOrderMessages, order);
qApp->settings()->sync();
}

View File

@ -741,6 +741,10 @@ int StandardFeed::updateMessages(const QList<Message> &messages) {
else {
updateCounts(true);
serviceRoot()->itemChanged(QList<RootItem*>() << this);
if (updated_messages > 0) {
serviceRoot()->requestFeedReadFilterReload();
}
}
return updated_messages;

View File

@ -64,7 +64,8 @@ StandardServiceRoot::~StandardServiceRoot() {
void StandardServiceRoot::start() {
loadFromDatabase();
if (qApp->isFirstRun()) {
if (getSubTree(RootItemKind::Category | RootItemKind::Feed).isEmpty()) {
// In other words, if there are no feeds or categories added.
if (MessageBox::show(qApp->mainForm(), QMessageBox::Question, QObject::tr("Load initial set of feeds"),
tr("You started %1 for the first time, now you can load initial set of feeds.").arg(APP_NAME),
tr("Do you want to load initial set of feeds?"),

View File

@ -380,6 +380,10 @@ int TtRssFeed::updateMessages(const QList<Message> &messages) {
updateCounts(true);
serviceRoot()->itemChanged(QList<RootItem*>() << this);
if (updated_messages > 0) {
serviceRoot()->requestFeedReadFilterReload();
}
}
return updated_messages;