summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (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
@@ -235,5 +235,2 @@ void KOEventViewerDialog::showIncidence()
if ( mIncidence ){
-#ifndef DESKTOP_VERSION
- hide();
-#endif
QDate date;
@@ -251,12 +248,13 @@ void KOEventViewerDialog::showIncidence()
((Todo*)mIncidence)->setCompleted(QDateTime::currentDateTime() );
- hide();
emit todoCompleted(((Todo*)mIncidence));
- return;
-
- } else
+ } else {
date = mIncidence->dtStart().date();
- globalFlagBlockAgenda = 1;
- emit showAgendaView( false );
- globalFlagBlockAgenda = 2;
- emit jumpToTime( date );
+ globalFlagBlockAgenda = 1;
+ emit showAgendaView( false );
+ globalFlagBlockAgenda = 2;
+ emit jumpToTime( date );
+ }
+#ifndef DESKTOP_VERSION
+ reject();
+#endif
}