Diffstat (limited to 'korganizer/koeventviewerdialog.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | korganizer/koeventviewerdialog.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/korganizer/koeventviewerdialog.cpp b/korganizer/koeventviewerdialog.cpp index 3979ed2..f6f7258 100644 --- a/korganizer/koeventviewerdialog.cpp +++ b/korganizer/koeventviewerdialog.cpp | |||
@@ -200,48 +200,49 @@ void KOEventViewerDialog::showIncidence() | |||
200 | { | 200 | { |
201 | 201 | ||
202 | if ( mSyncMode ) { | 202 | if ( mSyncMode ) { |
203 | mSyncResult = 1; | 203 | mSyncResult = 1; |
204 | accept(); | 204 | accept(); |
205 | return; | 205 | return; |
206 | } | 206 | } |
207 | 207 | ||
208 | if ( mIncidence ){ | 208 | if ( mIncidence ){ |
209 | #ifndef DESKTOP_VERSION | 209 | #ifndef DESKTOP_VERSION |
210 | hide(); | 210 | hide(); |
211 | #endif | 211 | #endif |
212 | QDate date; | 212 | QDate date; |
213 | if ( mIncidence->type() == "Todo" ) { | 213 | if ( mIncidence->type() == "Todo" ) { |
214 | /* | 214 | /* |
215 | if ( ((Todo*)mIncidence)->hasDueDate() ) | 215 | if ( ((Todo*)mIncidence)->hasDueDate() ) |
216 | date = ((Todo*)mIncidence)->dtDue().date(); | 216 | date = ((Todo*)mIncidence)->dtDue().date(); |
217 | else { | 217 | else { |
218 | globalFlagBlockAgenda = 2; | 218 | globalFlagBlockAgenda = 2; |
219 | emit showAgendaView( false ); | 219 | emit showAgendaView( false ); |
220 | return; | 220 | return; |
221 | } | 221 | } |
222 | */ | 222 | */ |
223 | ((Todo*)mIncidence)->setCompleted( true ); | 223 | ((Todo*)mIncidence)->setCompleted( true ); |
224 | ((Todo*)mIncidence)->setCompleted(QDateTime::currentDateTime() ); | ||
224 | hide(); | 225 | hide(); |
225 | emit todoCompleted(((Todo*)mIncidence)); | 226 | emit todoCompleted(((Todo*)mIncidence)); |
226 | return; | 227 | return; |
227 | 228 | ||
228 | } else | 229 | } else |
229 | date = mIncidence->dtStart().date(); | 230 | date = mIncidence->dtStart().date(); |
230 | globalFlagBlockAgenda = 1; | 231 | globalFlagBlockAgenda = 1; |
231 | emit showAgendaView( false ); | 232 | emit showAgendaView( false ); |
232 | globalFlagBlockAgenda = 2; | 233 | globalFlagBlockAgenda = 2; |
233 | emit jumpToTime( date ); | 234 | emit jumpToTime( date ); |
234 | } | 235 | } |
235 | } | 236 | } |
236 | void KOEventViewerDialog::keyPressEvent ( QKeyEvent * e ) | 237 | void KOEventViewerDialog::keyPressEvent ( QKeyEvent * e ) |
237 | { | 238 | { |
238 | switch ( e->key() ) { | 239 | switch ( e->key() ) { |
239 | 240 | ||
240 | case Qt::Key_A : | 241 | case Qt::Key_A : |
241 | case Qt::Key_L : | 242 | case Qt::Key_L : |
242 | showIncidence(); | 243 | showIncidence(); |
243 | break; | 244 | break; |
244 | case Qt::Key_E : | 245 | case Qt::Key_E : |
245 | case Qt::Key_R : | 246 | case Qt::Key_R : |
246 | editIncidence(); | 247 | editIncidence(); |
247 | break; | 248 | break; |