diff options
| -rw-r--r-- | src/panels/places/placespanel.cpp | 4 |
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(); |
