From 58a4e6e5dcc24e2f5c17ef9f0e6879d625b5f764 Mon Sep 17 00:00:00 2001 From: zautrix Date: Sat, 02 Jul 2005 07:02:47 +0000 Subject: fixes --- (limited to 'korganizer/komonthview.cpp') diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp index 264cf28..4fc447e 100644 --- a/korganizer/komonthview.cpp +++ b/korganizer/komonthview.cpp @@ -1792,13 +1792,15 @@ void KOMonthView::setKeyBoardFocus() shootAgain = !mWeekLabels[mNumWeeks]->hasFocus(); mWeekLabels[mNumWeeks]->setFocus(); } - if ( shootAgain ) { - QTimer::singleShot( 0, this, SLOT ( setKeyBFocus() ) ); + --mKBFcounter; + if ( shootAgain && mKBFcounter > 0 ) { + QTimer::singleShot( 50, this, SLOT ( setKeyBoardFocus() ) ); } } void KOMonthView::setKeyBFocus() { //qDebug("KOMonthView::setKeyBFocus() "); + mKBFcounter = 10; QTimer::singleShot( 0, this, SLOT ( setKeyBoardFocus() ) ); } void KOMonthView::resizeEvent(QResizeEvent * e) @@ -1816,7 +1818,7 @@ void KOMonthView::slotComputeLayout() mComputeLayoutTimer->stop(); //qDebug("KOMonthView::Post - resizeEvent %d %d ", width(), height() ); computeLayout(); - clPending = true; + clPending = true; setKeyBFocus(); } void KOMonthView::computeLayoutWeek() -- cgit v0.9.0.2