┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/panels/places
diff options
context:
space:
mode:
authorKai Uwe Broulik <[email protected]>2022-08-22 19:55:30 +0200
committerKai Uwe Broulik <[email protected]>2022-08-22 19:55:30 +0200
commit06df12013b7ccc961fff9b57803b054141fa84f6 (patch)
tree1cc590c0d857125ddf1faa6967bc5a8c61c14e26 /src/panels/places
parent53be1a4ccbfdb064fb34f87e7bbaaa9f2621d12d (diff)
Places Panel: Don't show error message on UserCanceled
There's no point telling the user what they just did
Diffstat (limited to 'src/panels/places')
-rw-r--r--src/panels/places/placespanel.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/panels/places/placespanel.cpp b/src/panels/places/placespanel.cpp
index 38dc4dc3a..a55df9b45 100644
--- a/src/panels/places/placespanel.cpp
+++ b/src/panels/places/placespanel.cpp
@@ -229,7 +229,9 @@ void PlacesPanel::slotTearDownRequestedExternally(const QString &udi)
void PlacesPanel::slotTearDownDone(Solid::ErrorType error, const QVariant& errorData)
{
if (error && errorData.isValid()) {
- if (error == Solid::ErrorType::DeviceBusy) {
+ if (error == Solid::ErrorType::UserCanceled) {
+ // No need to tell the user what they just did.
+ } else if (error == Solid::ErrorType::DeviceBusy) {
KListOpenFilesJob* listOpenFilesJob = new KListOpenFilesJob(m_deviceToTearDown->filePath());
connect(listOpenFilesJob, &KIO::Job::result, this, [this, listOpenFilesJob](KJob*) {
const KProcessList::KProcessInfoList blockingProcesses = listOpenFilesJob->processInfoList();