mirror of
https://invent.kde.org/system/dolphin
synced 2024-10-28 03:21:56 +00:00
Places Panel: Don't show error message on UserCanceled
There's no point telling the user what they just did
This commit is contained in:
parent
53be1a4ccb
commit
06df12013b
|
@ -229,7 +229,9 @@ void PlacesPanel::slotTearDownRequestedExternally(const QString &udi)
|
||||||
void PlacesPanel::slotTearDownDone(Solid::ErrorType error, const QVariant& errorData)
|
void PlacesPanel::slotTearDownDone(Solid::ErrorType error, const QVariant& errorData)
|
||||||
{
|
{
|
||||||
if (error && errorData.isValid()) {
|
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());
|
KListOpenFilesJob* listOpenFilesJob = new KListOpenFilesJob(m_deviceToTearDown->filePath());
|
||||||
connect(listOpenFilesJob, &KIO::Job::result, this, [this, listOpenFilesJob](KJob*) {
|
connect(listOpenFilesJob, &KIO::Job::result, this, [this, listOpenFilesJob](KJob*) {
|
||||||
const KProcessList::KProcessInfoList blockingProcesses = listOpenFilesJob->processInfoList();
|
const KProcessList::KProcessInfoList blockingProcesses = listOpenFilesJob->processInfoList();
|
||||||
|
|
Loading…
Reference in a new issue