summaryrefslogtreecommitdiffabout
path: root/korganizer/koagendaview.cpp
Side-by-side diff
Diffstat (limited to 'korganizer/koagendaview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/koagendaview.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp
index f452db0..b9909d6 100644
--- a/korganizer/koagendaview.cpp
+++ b/korganizer/koagendaview.cpp
@@ -1071,4 +1071,8 @@ void KOAgendaView::fillAgenda()
if ( globalFlagBlockAgenda == 1 )
return;
+ static bool onlyOne = false;
+ if ( onlyOne )
+ return;
+ onlyOne = true;
//if ( globalFlagBlockAgenda == 2 )
//globalFlagBlockAgenda = 0;
@@ -1258,4 +1262,5 @@ void KOAgendaView::fillAgenda()
mAgenda->drawContentsToPainter();
repaintAgenda();
+ onlyOne = false;
// mAgenda->finishUpdate();
//mAllDayAgenda->finishUpdate();