Initialize recycle bin's count to 0.
This commit is contained in:
parent
58ff1d5f70
commit
7f4a50336c
@ -51,7 +51,7 @@ void Category::updateCounts(bool including_total_count) {
|
|||||||
|
|
||||||
if (including_total_count) {
|
if (including_total_count) {
|
||||||
QMap<int,int> counts = DatabaseQueries::getMessageCountsForCategory(database, customId(), getParentServiceRoot()->accountId(),
|
QMap<int,int> counts = DatabaseQueries::getMessageCountsForCategory(database, customId(), getParentServiceRoot()->accountId(),
|
||||||
including_total_count, &ok);
|
including_total_count, &ok);
|
||||||
|
|
||||||
if (ok) {
|
if (ok) {
|
||||||
foreach (Feed *feed, feeds) {
|
foreach (Feed *feed, feeds) {
|
||||||
@ -61,7 +61,7 @@ void Category::updateCounts(bool including_total_count) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
QMap<int,int> counts = DatabaseQueries::getMessageCountsForCategory(database, customId(), getParentServiceRoot()->accountId(),
|
QMap<int,int> counts = DatabaseQueries::getMessageCountsForCategory(database, customId(), getParentServiceRoot()->accountId(),
|
||||||
false, &ok);
|
false, &ok);
|
||||||
|
|
||||||
if (ok) {
|
if (ok) {
|
||||||
foreach (Feed *feed, feeds) {
|
foreach (Feed *feed, feeds) {
|
||||||
|
@ -24,7 +24,8 @@
|
|||||||
#include "services/abstract/serviceroot.h"
|
#include "services/abstract/serviceroot.h"
|
||||||
|
|
||||||
|
|
||||||
RecycleBin::RecycleBin(RootItem *parent_item) : RootItem(parent_item), m_contextMenu(QList<QAction*>()) {
|
RecycleBin::RecycleBin(RootItem *parent_item) : RootItem(parent_item), m_totalCount(0),
|
||||||
|
m_unreadCount(0), m_contextMenu(QList<QAction*>()) {
|
||||||
setKind(RootItemKind::Bin);
|
setKind(RootItemKind::Bin);
|
||||||
setId(ID_RECYCLE_BIN);
|
setId(ID_RECYCLE_BIN);
|
||||||
setIcon(qApp->icons()->fromTheme(QSL("folder-recycle-bin")));
|
setIcon(qApp->icons()->fromTheme(QSL("folder-recycle-bin")));
|
||||||
|
@ -181,7 +181,7 @@ void StandardServiceRoot::loadFromDatabase(){
|
|||||||
|
|
||||||
// As the last item, add recycle bin, which is needed.
|
// As the last item, add recycle bin, which is needed.
|
||||||
appendChild(m_recycleBin);
|
appendChild(m_recycleBin);
|
||||||
updateCounts(true);
|
//updateCounts(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
void StandardServiceRoot::checkArgumentsForFeedAdding() {
|
void StandardServiceRoot::checkArgumentsForFeedAdding() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user