summaryrefslogtreecommitdiff
path: root/core/pim/todo/taskeditorstatus.cpp
authorzecke <zecke>2003-05-07 16:16:44 (UTC)
committer zecke <zecke>2003-05-07 16:16:44 (UTC)
commit1cee00987d34729393fb9383d90babd39517cc68 (patch) (side-by-side diff)
tree03a51eaf8bfcfd242b4bb98d29e941b0b9dcb38a /core/pim/todo/taskeditorstatus.cpp
parent1e9e3371d61cfc404329a8bad51f8b061c1ad73d (diff)
downloadopie-1cee00987d34729393fb9383d90babd39517cc68.zip
opie-1cee00987d34729393fb9383d90babd39517cc68.tar.gz
opie-1cee00987d34729393fb9383d90babd39517cc68.tar.bz2
try to use the has* functions
Diffstat (limited to 'core/pim/todo/taskeditorstatus.cpp') (more/less context) (show whitespace changes)
-rw-r--r--core/pim/todo/taskeditorstatus.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/pim/todo/taskeditorstatus.cpp b/core/pim/todo/taskeditorstatus.cpp
index b11fdab..4331877 100644
--- a/core/pim/todo/taskeditorstatus.cpp
+++ b/core/pim/todo/taskeditorstatus.cpp
@@ -181,3 +181,3 @@ void TaskEditorStatus::load( const OTodo &todo )
// Status
- int state = todo.state().state();
+ int state = todo.hasState()? todo.state().state() : OPimState::NotStarted;
if ( state == OPimState::Undefined )
@@ -218,3 +218,3 @@ void TaskEditorStatus::load( const OTodo &todo )
// Maintainer Mode
- state = todo.maintainer().mode();
+ state = todo.hasMaintainer() ? todo.maintainer().mode() : OPimMaintainer::Nothing;
if ( state == OPimMaintainer::Undefined )