mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 18:32:49 +00:00
kio: remove redundant KDirNotify calls in KAutoMount and KAutoUnmount
can't mount directories on network:/, trash:/, etc. - just not a thing. also org::kde::KDirNotify should not be used for local files and directories Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
978cf7f0dd
commit
693febf429
1 changed files with 0 additions and 9 deletions
|
@ -117,8 +117,6 @@ void KAutoMountPrivate::slotFinished(QDBusPendingCallWatcher *watcher)
|
|||
if (m_bShowFilemanagerWindow) {
|
||||
KRun::runUrl(url, "inode/directory", nullptr /*TODO - window*/);
|
||||
}
|
||||
// Notify about the new stuff in that dir, in case of opened windows showing it
|
||||
org::kde::KDirNotify::emitFilesAdded(url.url());
|
||||
|
||||
// Update the desktop file which is used for mount/unmount (icon change)
|
||||
kDebug(7015) << " mount finished : updating " << m_desktopFile;
|
||||
|
@ -203,13 +201,6 @@ void KAutoUnmountPrivate::slotFinished(QDBusPendingCallWatcher *watcher)
|
|||
dfURL.setPath(m_desktopFile);
|
||||
org::kde::KDirNotify::emitFilesChanged(QStringList() << dfURL.url());
|
||||
|
||||
// Notify about the new stuff in that dir, in case of opened windows showing it
|
||||
// You may think we removed files, but this may have also readded some
|
||||
// (if the mountpoint wasn't empty). The only possible behavior on FilesAdded
|
||||
// is to relist the directory anyway.
|
||||
KUrl mp(m_mountpoint);
|
||||
org::kde::KDirNotify::emitFilesAdded(mp.url());
|
||||
|
||||
emit q->finished();
|
||||
q->deleteLater();
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue