Hide progress info for rename jobs in rename dialog

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
This commit is contained in:
Kai Uwe Broulik 2017-01-31 20:50:47 +01:00
parent c1d9becda2
commit e582b13f84

View 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);