summaryrefslogtreecommitdiff
path: root/core
authorzecke <zecke>2003-03-14 08:20:59 (UTC)
committer zecke <zecke>2003-03-14 08:20:59 (UTC)
commit7e04934c4b7b9f8ad0d74d2da1c7c1273d9fe1d4 (patch) (unidiff)
tree9d8cb73a1b6013ab409b496cf2b99503f239c0c9 /core
parent08094624777d78bcd09f6ba6e2157599960ef7f3 (diff)
downloadopie-7e04934c4b7b9f8ad0d74d2da1c7c1273d9fe1d4.zip
opie-7e04934c4b7b9f8ad0d74d2da1c7c1273d9fe1d4.tar.gz
opie-7e04934c4b7b9f8ad0d74d2da1c7c1273d9fe1d4.tar.bz2
Do not crash when trying to edit and there is no data
Diffstat (limited to 'core') (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 ) {
632void MainWindow::slotEdit( int uid ) { 632void MainWindow::slotEdit( int uid ) {
633 if (uid == 1 ) return;
633 if(m_syncing) { 634 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 {
145int TableView::current() { 145int TableView::current() {
146 if (numRows() == 0 ) return 1;
146 int uid = sorted().uidAt(currentRow() ); 147 int uid = sorted().uidAt(currentRow() );