Initialize recycle bin's count to 0.
This commit is contained in:
parent
58ff1d5f70
commit
7f4a50336c
3 changed files with 5 additions and 4 deletions
|
|
@ -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…
Add table
Reference in a new issue