summaryrefslogtreecommitdiffstats
path: root/src/iconview
diff options
context:
space:
mode:
Diffstat (limited to 'src/iconview')
-rw-r--r--src/iconview/qiconview.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/iconview/qiconview.cpp b/src/iconview/qiconview.cpp
index 9fd3022..2272f83 100644
--- a/src/iconview/qiconview.cpp
+++ b/src/iconview/qiconview.cpp
@@ -5800,11 +5800,11 @@ bool QIconView::eventFilter( QObject * o, QEvent * e )
if ( d->dragging ) {
if ( !d->rubber )
drawDragShapes( d->oldDragPos );
- }
- bufferedPaintEvent( (QPaintEvent*)e );
- if ( d->dragging ) {
+ viewportPaintEvent( (QPaintEvent*)e );
if ( !d->rubber )
drawDragShapes( d->oldDragPos );
+ } else {
+ bufferedPaintEvent( (QPaintEvent*)e );
}
}
return TRUE;