mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-20 00:41:23 +00:00
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:
parent
4fb505e0ca
commit
2523ca5003
|
@ -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++) {
|
||||
|
|
Loading…
Reference in a new issue