-rw-r--r-- | core/pim/todo/tableview.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/core/pim/todo/tableview.cpp b/core/pim/todo/tableview.cpp index ae27fab..d9cda09 100644 --- a/core/pim/todo/tableview.cpp +++ b/core/pim/todo/tableview.cpp @@ -142,8 +142,9 @@ void TableView::slotShowMenu() { QString TableView::type() const { return QString::fromLatin1( tr("Table View") ); } int TableView::current() { + if (numRows() == 0 ) return 1; int uid = sorted().uidAt(currentRow() ); return uid; } |