Repaint the view and update the scrollbar when all items are removed

from the folder.

svn path=/trunk/KDE/kdebase/apps/; revision=909666
This commit is contained in:
Fredrik Höglund 2009-01-11 23:50:29 +00:00
parent 4fb505e0ca
commit 2523ca5003

View file

@ -315,6 +315,11 @@ void IconView::rowsRemoved(const QModelIndex &parent, int first, int last)
if (m_model->rowCount() > 0) {
m_delayedLayoutTimer.start(10, this);
emit busy(true);
} else {
// All the items were removed
m_items.clear();
updateScrollBar();
markAreaDirty(visibleArea());
}
} else {
for (int i = first; i <= last; i++) {