summaryrefslogtreecommitdiffstats
path: root/libkonq/konq_dirpart.cc
diff options
context:
space:
mode:
authorMichele Calgaro <[email protected]>2015-01-16 12:35:56 +0900
committerMichele Calgaro <[email protected]>2015-01-16 12:45:17 +0900
commitb78e6190535123d4e10bedbe29daf10565c0c084 (patch)
tree897e0295c92f33e2debe0474edcbe178fd94a776 /libkonq/konq_dirpart.cc
parentcb57172c20211a968dbe6f1a841cf221486aef84 (diff)
downloadtdebase-b78e6190535123d4e10bedbe29daf10565c0c084.tar.gz
tdebase-b78e6190535123d4e10bedbe29daf10565c0c084.zip
Added required refreshItems logic. This relates to bug 146.
cherry picked from commit bf0861baf08e739ab3721d642178dbab64015675) Signed-off-by: Michele Calgaro <[email protected]>
Diffstat (limited to 'libkonq/konq_dirpart.cc')
-rw-r--r--libkonq/konq_dirpart.cc13
1 files changed, 9 insertions, 4 deletions
diff --git a/libkonq/konq_dirpart.cc b/libkonq/konq_dirpart.cc
index 602496b7c..030cc90a9 100644
--- a/libkonq/konq_dirpart.cc
+++ b/libkonq/konq_dirpart.cc
@@ -440,20 +440,25 @@ void KonqDirPart::updatePasteAction() // KDE4: merge into method above
emit m_extension->enableAction( "paste", paste );
}
-void KonqDirPart::newItems( const KFileItemList & entries )
+void KonqDirPart::newItems(const KFileItemList &entries)
{
d->dirSizeDirty = true;
if ( m_findPart ) {
emitTotalCount();
}
- emit itemsAdded( entries );
+ emit itemsAdded(entries);
}
-void KonqDirPart::deleteItem( KFileItem * fileItem )
+void KonqDirPart::deleteItem(KFileItem * fileItem)
{
d->dirSizeDirty = true;
- emit itemRemoved( fileItem );
+ emit itemRemoved(fileItem);
+}
+
+void KonqDirPart::refreshItems(const KFileItemList &entries)
+{
+ emit itemsRefresh(entries);
}
void KonqDirPart::emitTotalCount()