notes/notesui/notesviews/src/notestodoview.cpp
changeset 57 bb2d3e476f29
parent 55 2c54b51f39c4
child 70 a5ed90760192
--- 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 );
 }