summaryrefslogtreecommitdiffabout
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--korganizer/komonthview.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp
index d825493..940d288 100644
--- a/korganizer/komonthview.cpp
+++ b/korganizer/komonthview.cpp
@@ -126,2 +126,3 @@ void KNoScrollListBox::keyPressEvent(QKeyEvent *e)
}
+ if ( count() ) {
setCurrentItem((currentItem()+count()-1)%count());
@@ -134,2 +135,3 @@ void KNoScrollListBox::keyPressEvent(QKeyEvent *e)
}
+ }
break;
@@ -140,2 +142,3 @@ void KNoScrollListBox::keyPressEvent(QKeyEvent *e)
}
+ if ( count () ) {
setCurrentItem((currentItem()+1)%count());
@@ -148,2 +151,3 @@ void KNoScrollListBox::keyPressEvent(QKeyEvent *e)
}
+ }
break;
@@ -164,2 +168,3 @@ void KNoScrollListBox::oneDown()
{
+ if ( count () ) {
setCurrentItem((currentItem()+1)%count());
@@ -173,2 +178,3 @@ void KNoScrollListBox::oneDown()
}
+}
void KNoScrollListBox::keyReleaseEvent(QKeyEvent *e)