Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
System
Dolphin
Commits
06df1201
Commit
06df1201
authored
Aug 22, 2022
by
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
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
src/panels/places/placespanel.cpp
View file @
06df1201
...
...
@@ -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
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment