summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/pim/todo/mainwindow.cpp1
-rw-r--r--core/pim/todo/tableview.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/core/pim/todo/mainwindow.cpp b/core/pim/todo/mainwindow.cpp
index 7810285..58981ca 100644
--- a/core/pim/todo/mainwindow.cpp
+++ b/core/pim/todo/mainwindow.cpp
@@ -632,2 +632,3 @@ void MainWindow::slotShow( int uid ) {
void MainWindow::slotEdit( int uid ) {
+ if (uid == 1 ) return;
if(m_syncing) {
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
@@ -145,2 +145,3 @@ QString TableView::type() const {
int TableView::current() {
+ if (numRows() == 0 ) return 1;
int uid = sorted().uidAt(currentRow() );