diff options
| author | Peter Penz <[email protected]> | 2007-12-16 11:43:39 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-12-16 11:43:39 +0000 |
| commit | 8808c0bca2269579c698291d3013c3c5cc412673 (patch) | |
| tree | ec45272fc3b7865a0a85a78c8b6270853d97a1a1 | |
| parent | bef9d64b2aa74d2c9b1a2e1d95a554a34e28271a (diff) | |
replace Q_ASSERT by 'if', otherwise each caller of updateElasticBand() must check the state itself
svn path=/trunk/KDE/kdebase/apps/; revision=749045
| -rw-r--r-- | src/dolphindetailsview.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/dolphindetailsview.cpp b/src/dolphindetailsview.cpp index bd2a75f61..36ea99ad8 100644 --- a/src/dolphindetailsview.cpp +++ b/src/dolphindetailsview.cpp @@ -402,11 +402,12 @@ void DolphinDetailsView::slotEntered(const QModelIndex& index) void DolphinDetailsView::updateElasticBand() { - Q_ASSERT(m_showElasticBand); - QRect dirtyRegion(elasticBandRect()); - m_elasticBandDestination = viewport()->mapFromGlobal(QCursor::pos()); - dirtyRegion = dirtyRegion.united(elasticBandRect()); - setDirtyRegion(dirtyRegion); + if (m_showElasticBand) { + QRect dirtyRegion(elasticBandRect()); + m_elasticBandDestination = viewport()->mapFromGlobal(QCursor::pos()); + dirtyRegion = dirtyRegion.united(elasticBandRect()); + setDirtyRegion(dirtyRegion); + } } QRect DolphinDetailsView::elasticBandRect() const |
