Commit 06df1201 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇
Browse files

Places Panel: Don't show error message on UserCanceled

There's no point telling the user what they just did
parent 53be1a4c
Pipeline #221327 passed with stage
in 5 minutes and 20 seconds
......@@ -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();
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment