-rw-r--r-- | korganizer/koagenda.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/korganizer/koagenda.cpp b/korganizer/koagenda.cpp index 7e9fa71..7d9d674 100644 --- a/korganizer/koagenda.cpp +++ b/korganizer/koagenda.cpp @@ -109,7 +109,8 @@ int MarcusBains::todayColumn() } void MarcusBains::updateLoc() { - updateLocation(); + if ( !agenda->invalidPixmap() ) + updateLocation(); } void MarcusBains::updateLocation(bool recalculate) { @@ -441,12 +442,16 @@ void KOAgenda::categoryChanged(Incidence * inc) } } } +bool KOAgenda::invalidPixmap() +{ + return mInvalidPixmap; +} bool KOAgenda::eventFilter_mouse(QObject *object, QMouseEvent *me) { if ( mInvalidPixmap ) { mInvalidPixmap = false; - qDebug("KO: Upsizing Pixmaps "); + qDebug("KO: efm Upsizing Pixmaps %s", QDateTime::currentDateTime().toString().latin1()); computeSizes(); emit updateViewSignal(); return true; @@ -1281,11 +1286,12 @@ void KOAgenda::drawContents(QPainter* p, int cx, int cy, int cw, int ch) if ( mInvalidPixmap ) { mInvalidPixmap = false; - qDebug("KO: Upsizing Pixmaps "); + qDebug("KO: dc Upsizing Pixmaps %s", QDateTime::currentDateTime().toString().latin1()); computeSizes(); emit updateViewSignal(); return; - } + } + //qDebug("KOAgenda::drawContents %s", QDateTime::currentDateTime().toString().latin1()); if ( ! mAllDayMode ) { // currently not working for |