From 95373a0d4ad00cbc1323470e1bbe4156b44ef89f Mon Sep 17 00:00:00 2001 From: dismine Date: Fri, 28 Nov 2014 17:16:39 +0200 Subject: [PATCH] Handle path to file with spaces on Windows. Second try. --HG-- branch : develop --- src/app/core/vapplication.cpp | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/src/app/core/vapplication.cpp b/src/app/core/vapplication.cpp index cc4f78997..0faceb853 100644 --- a/src/app/core/vapplication.cpp +++ b/src/app/core/vapplication.cpp @@ -198,31 +198,28 @@ void VApplication::NewValentina(const QString &fileName) qCDebug(vApp)<<"Open new detached process."; if (fileName.isEmpty()) { - qCDebug(vApp)<<"New process without arguments. program ="<applicationFilePath()+"\"")) { qCDebug(vApp)<<"The process was started successfully."; } else { - qCWarning(vApp)<<"The operation timed out or an error occurred."; + qCWarning(vApp)<<"Could not run process. The operation timed out or an error occurred."; } } else { - QStringList arguments; - arguments << fileName; - qCDebug(vApp)<<"New process with arguments. program ="<applicationFilePath()).arg(fileName); + qCDebug(vApp)<<"New process with arguments. program ="<