Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Utilities
KDiskFree
Commits
64c8456c
Commit
64c8456c
authored
Sep 15, 2021
by
Oleg Solovyov
🐴
Browse files
Fix passing arguments to QProcess::startDetached()
parent
8be97192
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/kdfwidget.cpp
View file @
64c8456c
...
...
@@ -461,7 +461,9 @@ void KDFWidget::contextMenuRequested( const QPoint &p )
{
cmd
+=
QLatin1Char
(
' '
)
+
KShell
::
quoteArg
(
disk
->
mountPoint
());
}
QProcess
::
startDetached
(
cmd
,
QStringList
());
QStringList
argList
=
cmd
.
split
(
QLatin1Char
(
' '
),
Qt
::
SkipEmptyParts
);
cmd
=
argList
.
takeFirst
();
QProcess
::
startDetached
(
cmd
,
argList
);
}
}
...
...
src/kwikdisk.cpp
View file @
64c8456c
...
...
@@ -253,7 +253,9 @@ void KwikDisk::toggleMount(QAction * action)
{
cmd
+=
QLatin1Char
(
' '
)
+
KShell
::
quoteArg
(
disk
->
mountPoint
());
}
QProcess
::
startDetached
(
cmd
,
QStringList
());
QStringList
argList
=
cmd
.
split
(
QLatin1Char
(
' '
),
Qt
::
SkipEmptyParts
);
cmd
=
argList
.
takeFirst
();
QProcess
::
startDetached
(
cmd
,
argList
);
}
}
m_dirty
=
true
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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