summaryrefslogtreecommitdiffabout
path: root/korganizer/kolistview.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/kolistview.cpp') (more/less context) (show whitespace changes)
-rw-r--r--korganizer/kolistview.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/korganizer/kolistview.cpp b/korganizer/kolistview.cpp
index 341f473..e1b393d 100644
--- a/korganizer/kolistview.cpp
+++ b/korganizer/kolistview.cpp
@@ -332,4 +332,5 @@ KOListView::~KOListView()
delete mPopupMenu;
}
+
QString KOListView::getWhatsThisText(QPoint p)
{
@@ -429,4 +430,5 @@ void KOListView::setAlarm()
qDebug("KO: Set alarm for %d items", count);
calendar()->reInitAlarmSettings();
+ QTimer::singleShot( 1, this, SLOT ( resetFocus() ) );
}
void KOListView::setCategories( bool removeOld )
@@ -476,4 +478,5 @@ void KOListView::setCategories( bool removeOld )
addIncidence( inc );
}
+ QTimer::singleShot( 1, this, SLOT ( resetFocus() ) );
}
@@ -700,4 +703,5 @@ void KOListView::writeToFile( bool iCal )
}
}
+ QTimer::singleShot( 1, this, SLOT ( resetFocus() ) );
}
void KOListView::deleteAll()
@@ -830,6 +834,9 @@ void KOListView::hideDates()
showDates(false);
}
+
void KOListView::resetFocus()
{
+ topLevelWidget()->setActiveWindow();
+ topLevelWidget()->raise();
mListView->setFocus();
}