--- a/notes/notesui/notesviews/src/notestodoview.cpp Mon Jul 26 13:54:38 2010 +0530
+++ b/notes/notesui/notesviews/src/notestodoview.cpp Mon Aug 09 18:30:52 2010 +0530
@@ -484,18 +484,18 @@
OstTraceFunctionEntry0( NOTESTODOVIEW_UPDATESUBTITLE_ENTRY );
Q_UNUSED(id)
- // Get the number of notes and to-do entries.
+ // Get the number of incompleted to-do entries.
QList<ulong> entries = mAgendaUtil->entryIds(
AgendaUtil::IncludeIncompletedTodos);
mSubTitle->setHeading(
hbTrId("txt_notes_subhead_todos_ln_pending",entries.count()));
- if (0 >= entries.count()) {
+ if (0 < mProxyModel->rowCount()) {
+ mEmptyListLabel->hide();
+ mListView->show();
+ } else {
mEmptyListLabel->show();
mListView->hide();
- } else {
- mEmptyListLabel->hide();
- mListView->show();
}
OstTraceFunctionExit0( NOTESTODOVIEW_UPDATESUBTITLE_EXIT );
}