Diffstat (limited to 'korganizer/kojournalview.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/kojournalview.cpp | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/korganizer/kojournalview.cpp b/korganizer/kojournalview.cpp index cb9a2c0..b659d53 100644 --- a/korganizer/kojournalview.cpp +++ b/korganizer/kojournalview.cpp @@ -123,2 +123,5 @@ void KOJournalView::flushView() { + static bool ff = false; + if ( ff ) return; + ff = true; JournalEntry* mEntry = jEntries.first(); @@ -128,2 +131,3 @@ void KOJournalView::flushView() } + ff = false; } @@ -140,2 +144,3 @@ void KOJournalView::newJournal() { + //qDebug(" KOJournalView::newJournal()"); flushView(); @@ -149,2 +154,3 @@ void KOJournalView::showOnly ( Journal* j ) { + //qDebug("showOnly %x ", j); flushView(); @@ -162,2 +168,3 @@ void KOJournalView::showList(QPtrList<Journal> jl) { + //qDebug("KOJournalView::showList %d",jl.count() ); JournalEntry* mEntry = jEntries.first(); @@ -170,2 +177,3 @@ void KOJournalView::showList(QPtrList<Journal> jl) mEntry->show(); + mEntry->setVisibleMode( true ); mEntry->setDate(mDate); @@ -173,3 +181,3 @@ void KOJournalView::showList(QPtrList<Journal> jl) mEntry = 0; - } else { + } else { mEntry->setDate(mDate); @@ -177,2 +185,3 @@ void KOJournalView::showList(QPtrList<Journal> jl) mEntry->show(); + mEntry->setVisibleMode( true ); mEntry = jEntries.next(); @@ -184,6 +193,10 @@ void KOJournalView::showList(QPtrList<Journal> jl) mEntry->clear(); - if ( mEntry != firstEntry ) + if ( mEntry != firstEntry ) { mEntry->hide(); - else + mEntry->setVisibleMode( false ); + } + else { + mEntry->setVisibleMode( true ); mEntry->show(); + } mEntry = jEntries.next(); |