GUI: Fix loading of platform files in project file dialog (#1122)
Platform::loadPlatformFile needs the path to the binary not only the path to the directory where the binary is in. Otherwise the last directory could get stripped away and the platform files maybe will not be found.
This commit is contained in:
parent
57b96d3aaa
commit
e4becc5616
|
@ -123,7 +123,7 @@ ProjectFileDialog::ProjectFileDialog(ProjectFile *projectFile, QWidget *parent)
|
||||||
const QString platformFile = item.fileName();
|
const QString platformFile = item.fileName();
|
||||||
|
|
||||||
cppcheck::Platform p;
|
cppcheck::Platform p;
|
||||||
if (!p.loadPlatformFile(appPath.toStdString().c_str(), platformFile.toStdString()))
|
if (!p.loadPlatformFile(applicationFilePath.toStdString().c_str(), platformFile.toStdString()))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
if (platformFiles.indexOf(platformFile) == -1)
|
if (platformFiles.indexOf(platformFile) == -1)
|
||||||
|
|
Loading…
Reference in New Issue