-rw-r--r-- | korganizer/koeventviewerdialog.cpp | 12 |
1 files changed, 5 insertions, 7 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,7 +248,4 @@ void KOEventViewerDialog::showIncidence() ((Todo*)mIncidence)->setCompleted(QDateTime::currentDateTime() ); - hide(); emit todoCompleted(((Todo*)mIncidence)); - return; - - } else + } else { date = mIncidence->dtStart().date(); @@ -262,2 +256,6 @@ void KOEventViewerDialog::showIncidence() } +#ifndef DESKTOP_VERSION + reject(); +#endif + } } |