Verified Commit f3268539 authored by Jonah Brüchert's avatar Jonah Brüchert 🌳

Port away from deprecated QProcess::startDetached overload

parent c9ca9dac
......@@ -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()
Markdown is supported
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