diff --git a/src/app/core/vapplication.cpp b/src/app/core/vapplication.cpp index 5f0043ea4..c6c212e01 100644 --- a/src/app/core/vapplication.cpp +++ b/src/app/core/vapplication.cpp @@ -190,19 +190,35 @@ VApplication::~VApplication() void VApplication::NewValentina(const QString &fileName) { qCDebug(vApp)<<"Open new detached process."; - - QProcess *v = new QProcess(); - QStringList arguments; - arguments << fileName; if (fileName.isEmpty()) { - v->startDetached(QCoreApplication::applicationFilePath()); + qCDebug(vApp)<<"New process without arguments. program ="<startDetached(QCoreApplication::applicationFilePath(), arguments); + QStringList arguments; + arguments << fileName; + qCDebug(vApp)<<"New process with arguments. program ="<