mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 10:52:49 +00:00
kio: KDirListerPrivate::_k_slotFileRenamed() optimization
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
70b373514b
commit
4e0c236efe
1 changed files with 2 additions and 4 deletions
|
@ -175,10 +175,8 @@ void KDirListerPrivate::_k_slotDirty(const QString &path)
|
|||
void KDirListerPrivate::_k_slotFileRenamed(const QString &path, const QString &path2)
|
||||
{
|
||||
kDebug(7003) << "file renamed" << path << path2;
|
||||
QMutableListIterator<KFileItem> it(filteredItems);
|
||||
while (it.hasNext()) {
|
||||
const KFileItem item = it.next();
|
||||
if (item.url() == KUrl(path)) {
|
||||
foreach (const KFileItem &it, filteredItems) {
|
||||
if (it.url() == KUrl(path)) {
|
||||
m_parent->updateDirectory();
|
||||
break;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue