-rw-r--r-- | korganizer/calendarview.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index 427d71b..9674921 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp @@ -2763,33 +2763,37 @@ void CalendarView::changeEventDisplay(Event *which, int action) clearAllViews(); clearallviews = false; } return; } clearallviews = true; mDateNavigator->updateView(); //mDialogManager->updateSearchDialog(); if (which) { // If there is an event view visible update the display mViewManager->currentView()->changeEventDisplay(which,action); // TODO: check, if update needed // if (which->getTodoStatus()) { mTodoList->updateView(); if ( action != KOGlobals::EVENTDELETED ) { mConflictingEvent = which ; - QTimer::singleShot( 1000, this, SLOT ( checkConflictForEvent() ) ); + int time = 1000; +#ifdef DESKTOP_VERSION + time = 500; +#endif + QTimer::singleShot( time, this, SLOT ( checkConflictForEvent() ) ); } // } } else { mViewManager->currentView()->updateView(); } } void CalendarView::checkConflictForEvent() { if (!KOPrefs::instance()->mConfirm) return; if ( ! mConflictingEvent ) return; QDateTime current = QDateTime::currentDateTime(); if ( ! mConflictingEvent->matchTime( ¤t, 0 ) ) { mConflictingEvent = 0; return; |