]> cloud.milkyroute.net Git - dolphin.git/commitdiff
Hide progress info for rename jobs in rename dialog
authorKai Uwe Broulik <kde@privat.broulik.de>
Tue, 31 Jan 2017 19:50:47 +0000 (20:50 +0100)
committerKai Uwe Broulik <kde@privat.broulik.de>
Tue, 31 Jan 2017 19:50:47 +0000 (20:50 +0100)
When mass-renaming files, you could end up with a a gazillion notifications of a finished move job.
This fixes this. Ideally we would have one job which had the rename jobs as subjobs to still get
progress info for the overall task.

Differential Revision: https://phabricator.kde.org/D4372

src/views/renamedialog.cpp

index a514ede1e7d5b1a7858dcd2b22a756802037da7a..cf8f6885df9054b482f947038c15b64db306bd72 100644 (file)
@@ -159,7 +159,7 @@ void RenameDialog::renameItem(const KFileItem &item, const QString& newName)
         widget = this;
     }
 
-    KIO::Job * job = KIO::moveAs(oldUrl, newUrl);
+    KIO::Job * job = KIO::moveAs(oldUrl, newUrl, KIO::HideProgressInfo);
     KJobWidgets::setWindow(job, widget);
     KIO::FileUndoManager::self()->recordJob(KIO::FileUndoManager::Rename, {oldUrl}, newUrl, job);
     job->ui()->setAutoErrorHandlingEnabled(true);