mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
Port away from deprecated QProcess::startDetached overload
This commit is contained in:
parent
c9ca9dac10
commit
f326853971
1 changed files with 2 additions and 1 deletions
|
|
@ -86,7 +86,8 @@ PhonePanel::~PhonePanel() = default;
|
|||
void PhonePanel::executeCommand(const QString &command)
|
||||
{
|
||||
qWarning() << "Executing" << command;
|
||||
QProcess::startDetached(command, QStringList());
|
||||
const QStringList commandAndArguments = QProcess::splitCommand(command);
|
||||
QProcess::startDetached(commandAndArguments.front(), commandAndArguments.mid(1));
|
||||
}
|
||||
|
||||
void PhonePanel::toggleTorch()
|
||||
|
|
|
|||
Loading…
Reference in a new issue