From 9f529f992b9143a4364d1aa6fdbb5781a9fa7922 Mon Sep 17 00:00:00 2001 From: elonkou Date: Wed, 9 Oct 2024 18:01:01 +0800 Subject: [PATCH] [BUG#2024] fixed crypto version issues for ubuntu 20.04 compile with default libraries. --- ui/zenoedit/panel/zlogpanel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/zenoedit/panel/zlogpanel.cpp b/ui/zenoedit/panel/zlogpanel.cpp index 96f1429168..eb1dbff6a8 100644 --- a/ui/zenoedit/panel/zlogpanel.cpp +++ b/ui/zenoedit/panel/zlogpanel.cpp @@ -334,7 +334,7 @@ void ZPlainLogPanel::contextMenuEvent(QContextMenuEvent* event) QString cmd = text; cmd = cmd.replace(str, newStr); QProcess process; - auto cmdArgs = cmd.split(QRegularExpression("\\s+"), QString::SkipEmptyParts); + auto cmdArgs = process.splitCommand(cmd); process.setProgram(cmdArgs.takeFirst()); QStringList args; for (int i = 0; i < cmdArgs.size(); i++)