summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-08-05 19:37:52 (UTC)
committer zautrix <zautrix>2005-08-05 19:37:52 (UTC)
commit6bf157dca5ab703c7f1674c117cc62d9675f4bde (patch) (side-by-side diff)
tree3f9df43dab51dfc409779bb31085b7bcbeee16ff
parent78ae7e3faed42b510f4f0a60007115756cd06128 (diff)
downloadkdepimpi-6bf157dca5ab703c7f1674c117cc62d9675f4bde.zip
kdepimpi-6bf157dca5ab703c7f1674c117cc62d9675f4bde.tar.gz
kdepimpi-6bf157dca5ab703c7f1674c117cc62d9675f4bde.tar.bz2
fixx
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--korganizer/kojournalview.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/korganizer/kojournalview.cpp b/korganizer/kojournalview.cpp
index 0523954..a23a3b2 100644
--- a/korganizer/kojournalview.cpp
+++ b/korganizer/kojournalview.cpp
@@ -159,25 +159,28 @@ void KOJournalView::showOnly ( Journal* j )
flushView();
if ( j == 0 ) {
showDates( mDate, QDate() );
return;
}
QPtrList<Journal> jl;
jl.append ( j );
showList( jl );
JournalEntry* mEntry = jEntries.first();
mEntry->setShowOnly();
}
void KOJournalView::showList(QPtrList<Journal> jl)
-{
+{
+ static bool ff = false;
+ if ( ff ) return;
+ ff = true;
//qDebug("KOJournalView::showList %d",jl.count() );
JournalEntry* mEntry = jEntries.first();
JournalEntry* firstEntry = mEntry;
int count = jl.count();
int iii = 0;
while ( iii < count ) {
if ( !mEntry ) {
mEntry = getNewEntry();
mEntry->setVisibleMode( true );
mEntry->setDate(mDate);
mEntry->setJournal(jl.at(iii), false);
mEntry->setVisibleMode( true );
@@ -197,24 +200,25 @@ void KOJournalView::showList(QPtrList<Journal> jl)
mEntry->setDate(mDate);
mEntry->clear();
if ( mEntry != firstEntry ) {
mEntry->hide();
mEntry->setVisibleMode( false );
}
else {
mEntry->setVisibleMode( true );
mEntry->show();
}
mEntry = jEntries.next();
}
+ ff = false;
}
void KOJournalView::showDates(const QDate &start, const QDate &)
{
mDate = start;
mDateLabel->setText(KGlobal::locale()->formatDate(mDate));
QPtrList<Journal> jl = calendar()->journals4Date( start );
showList( jl );
}
void KOJournalView::showEvents(QPtrList<Event>)
{