Fix execution of executable addons from GUI
This commit is contained in:
parent
48ab3f762b
commit
d2dd4e54b9
|
@ -852,6 +852,9 @@ Settings MainWindow::getCppcheckSettings()
|
|||
|
||||
Settings result;
|
||||
|
||||
const QString applicationFilePath = QCoreApplication::applicationFilePath();
|
||||
result.exename = applicationFilePath.toStdString();
|
||||
|
||||
const bool std = tryLoadLibrary(&result.library, "std.cfg");
|
||||
bool posix = true;
|
||||
if (result.posix())
|
||||
|
|
|
@ -133,7 +133,7 @@ namespace {
|
|||
if (obj.count("executable")) {
|
||||
if (!obj["executable"].is<std::string>())
|
||||
return "Loading " + fileName + " failed. executable must be a string.";
|
||||
executable = getFullPath(obj["executable"].get<std::string>(), exename);
|
||||
executable = getFullPath(obj["executable"].get<std::string>(), fileName);
|
||||
return "";
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue