mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +00:00
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:
parent
c1d9becda2
commit
e582b13f84
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ void RenameDialog::renameItem(const KFileItem &item, const QString& newName)
|
||||||
widget = this;
|
widget = this;
|
||||||
}
|
}
|
||||||
|
|
||||||
KIO::Job * job = KIO::moveAs(oldUrl, newUrl);
|
KIO::Job * job = KIO::moveAs(oldUrl, newUrl, KIO::HideProgressInfo);
|
||||||
KJobWidgets::setWindow(job, widget);
|
KJobWidgets::setWindow(job, widget);
|
||||||
KIO::FileUndoManager::self()->recordJob(KIO::FileUndoManager::Rename, {oldUrl}, newUrl, job);
|
KIO::FileUndoManager::self()->recordJob(KIO::FileUndoManager::Rename, {oldUrl}, newUrl, job);
|
||||||
job->ui()->setAutoErrorHandlingEnabled(true);
|
job->ui()->setAutoErrorHandlingEnabled(true);
|
||||||
|
|
Loading…
Reference in a new issue