From 1fcf6ff2b14fa01a8de19923114bed21434f31ef Mon Sep 17 00:00:00 2001 From: Dman95 Date: Sun, 19 Feb 2017 18:07:00 +0300 Subject: [PATCH] Build in current dirrectory option fixed. --- mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/mainwindow.cpp b/mainwindow.cpp index 14302ea3..3fabff7d 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -864,6 +864,8 @@ void MainWindow::buildProgram(bool debugMode) if (!path.isEmpty()) { QString dirPath = QFileInfo(path).absoluteDir().absolutePath(); assemblerProcess.setWorkingDirectory(dirPath); + } else { + assemblerProcess.setWorkingDirectory(applicationDataPath() + "/include"); } } else { assemblerProcess.setWorkingDirectory(applicationDataPath() + "/include");