-rw-r--r-- | korganizer/kolistview.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/korganizer/kolistview.cpp b/korganizer/kolistview.cpp index 341f473..e1b393d 100644 --- a/korganizer/kolistview.cpp +++ b/korganizer/kolistview.cpp | |||
@@ -331,6 +331,7 @@ KOListView::~KOListView() | |||
331 | { | 331 | { |
332 | delete mPopupMenu; | 332 | delete mPopupMenu; |
333 | } | 333 | } |
334 | |||
334 | QString KOListView::getWhatsThisText(QPoint p) | 335 | QString KOListView::getWhatsThisText(QPoint p) |
335 | { | 336 | { |
336 | KOListViewItem* item = ( KOListViewItem* ) mListView->itemAt( p ); | 337 | KOListViewItem* item = ( KOListViewItem* ) mListView->itemAt( p ); |
@@ -428,6 +429,7 @@ void KOListView::setAlarm() | |||
428 | topLevelWidget()->setCaption( i18n("Canged alarm for %1 items").arg( count ) ); | 429 | topLevelWidget()->setCaption( i18n("Canged alarm for %1 items").arg( count ) ); |
429 | qDebug("KO: Set alarm for %d items", count); | 430 | qDebug("KO: Set alarm for %d items", count); |
430 | calendar()->reInitAlarmSettings(); | 431 | calendar()->reInitAlarmSettings(); |
432 | QTimer::singleShot( 1, this, SLOT ( resetFocus() ) ); | ||
431 | } | 433 | } |
432 | void KOListView::setCategories( bool removeOld ) | 434 | void KOListView::setCategories( bool removeOld ) |
433 | { | 435 | { |
@@ -475,6 +477,7 @@ void KOListView::setCategories( bool removeOld ) | |||
475 | delete temp;; | 477 | delete temp;; |
476 | addIncidence( inc ); | 478 | addIncidence( inc ); |
477 | } | 479 | } |
480 | QTimer::singleShot( 1, this, SLOT ( resetFocus() ) ); | ||
478 | } | 481 | } |
479 | 482 | ||
480 | void KOListView::beamSelected() | 483 | void KOListView::beamSelected() |
@@ -699,6 +702,7 @@ void KOListView::writeToFile( bool iCal ) | |||
699 | topLevelWidget()->setCaption(mes); | 702 | topLevelWidget()->setCaption(mes); |
700 | } | 703 | } |
701 | } | 704 | } |
705 | QTimer::singleShot( 1, this, SLOT ( resetFocus() ) ); | ||
702 | } | 706 | } |
703 | void KOListView::deleteAll() | 707 | void KOListView::deleteAll() |
704 | { | 708 | { |
@@ -829,8 +833,11 @@ void KOListView::hideDates() | |||
829 | { | 833 | { |
830 | showDates(false); | 834 | showDates(false); |
831 | } | 835 | } |
836 | |||
832 | void KOListView::resetFocus() | 837 | void KOListView::resetFocus() |
833 | { | 838 | { |
839 | topLevelWidget()->setActiveWindow(); | ||
840 | topLevelWidget()->raise(); | ||
834 | mListView->setFocus(); | 841 | mListView->setFocus(); |
835 | } | 842 | } |
836 | void KOListView::updateView() | 843 | void KOListView::updateView() |