summaryrefslogtreecommitdiffabout
path: root/korganizer/koeventviewerdialog.cpp
Unidiff
Diffstat (limited to 'korganizer/koeventviewerdialog.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koeventviewerdialog.cpp20
1 files changed, 9 insertions, 11 deletions
diff --git a/korganizer/koeventviewerdialog.cpp b/korganizer/koeventviewerdialog.cpp
index 1dce841..baa11b5 100644
--- a/korganizer/koeventviewerdialog.cpp
+++ b/korganizer/koeventviewerdialog.cpp
@@ -233,9 +233,6 @@ void KOEventViewerDialog::showIncidence()
233 } 233 }
234 234
235 if ( mIncidence ){ 235 if ( mIncidence ){
236#ifndef DESKTOP_VERSION
237 hide();
238#endif
239 QDate date; 236 QDate date;
240 if ( mIncidence->type() == "Todo" ) { 237 if ( mIncidence->type() == "Todo" ) {
241 /* 238 /*
@@ -249,16 +246,17 @@ void KOEventViewerDialog::showIncidence()
249 */ 246 */
250 ((Todo*)mIncidence)->setCompleted( true ); 247 ((Todo*)mIncidence)->setCompleted( true );
251 ((Todo*)mIncidence)->setCompleted(QDateTime::currentDateTime() ); 248 ((Todo*)mIncidence)->setCompleted(QDateTime::currentDateTime() );
252 hide();
253 emit todoCompleted(((Todo*)mIncidence)); 249 emit todoCompleted(((Todo*)mIncidence));
254 return; 250 } else {
255
256 } else
257 date = mIncidence->dtStart().date(); 251 date = mIncidence->dtStart().date();
258 globalFlagBlockAgenda = 1; 252 globalFlagBlockAgenda = 1;
259 emit showAgendaView( false ); 253 emit showAgendaView( false );
260 globalFlagBlockAgenda = 2; 254 globalFlagBlockAgenda = 2;
261 emit jumpToTime( date ); 255 emit jumpToTime( date );
256 }
257#ifndef DESKTOP_VERSION
258 reject();
259#endif
262 } 260 }
263} 261}
264void KOEventViewerDialog::keyPressEvent ( QKeyEvent * e ) 262void KOEventViewerDialog::keyPressEvent ( QKeyEvent * e )