[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    [dolphin/Applications/16.12] src/views: Hide progress info for rename jobs in rename dialog
From:       Kai Uwe Broulik <null () kde ! org>
Date:       2017-01-31 19:51:33
Message-ID: E1cYeSj-0004ui-DX () code ! kde ! org
[Download RAW message or body]

Git commit e582b13f8485dc9c9fc4b23f72d007dc99deec9b by Kai Uwe Broulik.
Committed on 31/01/2017 at 19:50.
Pushed by broulik into branch 'Applications/16.12'.

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

M  +1    -1    src/views/renamedialog.cpp

https://commits.kde.org/dolphin/e582b13f8485dc9c9fc4b23f72d007dc99deec9b

diff --git a/src/views/renamedialog.cpp b/src/views/renamedialog.cpp
index a514ede1e7..cf8f6885df 100644
--- a/src/views/renamedialog.cpp
+++ b/src/views/renamedialog.cpp
@@ -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);
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic