aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/General
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/General')
-rw-r--r--src/plugins/General/converter/converterdialog.cpp12
1 files changed, 4 insertions, 8 deletions
diff --git a/src/plugins/General/converter/converterdialog.cpp b/src/plugins/General/converter/converterdialog.cpp
index 19383772b..1b14dce7b 100644
--- a/src/plugins/General/converter/converterdialog.cpp
+++ b/src/plugins/General/converter/converterdialog.cpp
@@ -340,17 +340,13 @@ QString ConverterDialog::uniqueName(const QString &name)
bool ConverterDialog::checkPreset(const QVariantMap &preset)
{
-#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
- QStringList tokens = QProcess::splitCommand(preset["command"].toString());
-#else
- QStringList tokens = preset["command"].toString().split(" ", QString::SkipEmptyParts);
-#endif
- if(tokens.isEmpty())
+ QStringList programAndArgs = preset["command"].toString().split(" ", QString::SkipEmptyParts);
+ if(programAndArgs.isEmpty())
return false;
- QString program = tokens.takeFirst();
+ QString program = programAndArgs.first();
- int result = QProcess::execute(program, tokens);
+ int result = QProcess::execute(program, QStringList());
if(result == -2)
{