-rw-r--r-- | korganizer/kojournalview.cpp | 6 |
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 | |||
@@ -163,17 +163,20 @@ void KOJournalView::showOnly ( Journal* j ) | |||
163 | } | 163 | } |
164 | QPtrList<Journal> jl; | 164 | QPtrList<Journal> jl; |
165 | jl.append ( j ); | 165 | jl.append ( j ); |
166 | showList( jl ); | 166 | showList( jl ); |
167 | JournalEntry* mEntry = jEntries.first(); | 167 | JournalEntry* mEntry = jEntries.first(); |
168 | mEntry->setShowOnly(); | 168 | mEntry->setShowOnly(); |
169 | } | 169 | } |
170 | void KOJournalView::showList(QPtrList<Journal> jl) | 170 | void KOJournalView::showList(QPtrList<Journal> jl) |
171 | { | 171 | { |
172 | static bool ff = false; | ||
173 | if ( ff ) return; | ||
174 | ff = true; | ||
172 | //qDebug("KOJournalView::showList %d",jl.count() ); | 175 | //qDebug("KOJournalView::showList %d",jl.count() ); |
173 | JournalEntry* mEntry = jEntries.first(); | 176 | JournalEntry* mEntry = jEntries.first(); |
174 | JournalEntry* firstEntry = mEntry; | 177 | JournalEntry* firstEntry = mEntry; |
175 | int count = jl.count(); | 178 | int count = jl.count(); |
176 | int iii = 0; | 179 | int iii = 0; |
177 | while ( iii < count ) { | 180 | while ( iii < count ) { |
178 | if ( !mEntry ) { | 181 | if ( !mEntry ) { |
179 | mEntry = getNewEntry(); | 182 | mEntry = getNewEntry(); |
@@ -201,16 +204,17 @@ void KOJournalView::showList(QPtrList<Journal> jl) | |||
201 | mEntry->setVisibleMode( false ); | 204 | mEntry->setVisibleMode( false ); |
202 | } | 205 | } |
203 | else { | 206 | else { |
204 | mEntry->setVisibleMode( true ); | 207 | mEntry->setVisibleMode( true ); |
205 | mEntry->show(); | 208 | mEntry->show(); |
206 | } | 209 | } |
207 | mEntry = jEntries.next(); | 210 | mEntry = jEntries.next(); |
208 | } | 211 | } |
212 | ff = false; | ||
209 | } | 213 | } |
210 | 214 | ||
211 | void KOJournalView::showDates(const QDate &start, const QDate &) | 215 | void KOJournalView::showDates(const QDate &start, const QDate &) |
212 | { | 216 | { |
213 | mDate = start; | 217 | mDate = start; |
214 | mDateLabel->setText(KGlobal::locale()->formatDate(mDate)); | 218 | mDateLabel->setText(KGlobal::locale()->formatDate(mDate)); |
215 | QPtrList<Journal> jl = calendar()->journals4Date( start ); | 219 | QPtrList<Journal> jl = calendar()->journals4Date( start ); |
216 | showList( jl ); | 220 | showList( jl ); |