Diffstat (limited to 'core/pim/todo/todoentryimpl.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/todo/todoentryimpl.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/core/pim/todo/todoentryimpl.cpp b/core/pim/todo/todoentryimpl.cpp index 1dc1d44..f938d61 100644 --- a/core/pim/todo/todoentryimpl.cpp +++ b/core/pim/todo/todoentryimpl.cpp | |||
@@ -45,13 +45,13 @@ | |||
45 | NewTaskDialog::NewTaskDialog( const ToDoEvent& task, QWidget *parent, | 45 | NewTaskDialog::NewTaskDialog( const ToDoEvent& task, QWidget *parent, |
46 | const char *name, bool modal, WFlags fl ) | 46 | const char *name, bool modal, WFlags fl ) |
47 | : NewTaskDialogBase( parent, name, modal, fl ), | 47 | : NewTaskDialogBase( parent, name, modal, fl ), |
48 | todo( task ) | 48 | todo( task ) |
49 | { | 49 | { |
50 | qWarning("setting category" ); | 50 | qWarning("setting category" ); |
51 | todo.setCategory( task.category() ); | 51 | todo.setCategories( task.allCategories() ); |
52 | if ( todo.hasDate() ) | 52 | if ( todo.hasDate() ) |
53 | date = todo.date(); | 53 | date = todo.date(); |
54 | else | 54 | else |
55 | date = QDate::currentDate(); | 55 | date = QDate::currentDate(); |
56 | 56 | ||
57 | init(); | 57 | init(); |
@@ -125,16 +125,16 @@ ToDoEvent NewTaskDialog::todoEntry() | |||
125 | }else{ | 125 | }else{ |
126 | todo.setHasDate( false ); | 126 | todo.setHasDate( false ); |
127 | } | 127 | } |
128 | qWarning("todoEntry::category()" ); | 128 | qWarning("todoEntry::category()" ); |
129 | if ( comboCategory->currentCategory() != -1 ) { | 129 | if ( comboCategory->currentCategory() != -1 ) { |
130 | QArray<int> arr = comboCategory->currentCategories(); | 130 | QArray<int> arr = comboCategory->currentCategories(); |
131 | int id = arr[0]; | 131 | QStringList list; |
132 | qWarning("id 0: %d",id ); | 132 | list = QStringList::split(";", Qtopia::Record::idsToString( arr )) ; |
133 | todo.setCategory( Qtopia::Record::idsToString( arr ) ); | ||
134 | qWarning("saving category"); | 133 | qWarning("saving category"); |
134 | todo.setCategories( list ); | ||
135 | } | 135 | } |
136 | todo.setPriority( comboPriority->currentItem() + 1 ); | 136 | todo.setPriority( comboPriority->currentItem() + 1 ); |
137 | todo.setCompleted( checkCompleted->isChecked() ); | 137 | todo.setCompleted( checkCompleted->isChecked() ); |
138 | 138 | ||
139 | todo.setDescription( txtTodo->text() ); | 139 | todo.setDescription( txtTodo->text() ); |
140 | 140 | ||