From b7b85236914ef02b10f96c7cbe77f2f5ff7f3b00 Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Mon, 7 Sep 2015 18:02:17 +0300 Subject: [PATCH] Fixed issue #347. --HG-- branch : develop --- src/app/valentina/mainwindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/app/valentina/mainwindow.cpp b/src/app/valentina/mainwindow.cpp index 03e84822c..325de14ab 100644 --- a/src/app/valentina/mainwindow.cpp +++ b/src/app/valentina/mainwindow.cpp @@ -1091,7 +1091,9 @@ void MainWindow::LoadStandard() //--------------------------------------------------------------------------------------------------------------------- void MainWindow::CreateMeasurements() { - QProcess::startDetached(qApp->TapeFilePath()); + const QString tape = qApp->TapeFilePath(); + const QString workingDirectory = QFileInfo(tape).absoluteDir().absolutePath(); + QProcess::startDetached(tape, QStringList(), workingDirectory); } //---------------------------------------------------------------------------------------------------------------------