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:
Sebastian 2018-03-16 05:35:30 +01:00 committed by GitHub
parent 57b96d3aaa
commit e4becc5616
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ ProjectFileDialog::ProjectFileDialog(ProjectFile *projectFile, QWidget *parent)
const QString platformFile = item.fileName();
cppcheck::Platform p;
if (!p.loadPlatformFile(appPath.toStdString().c_str(), platformFile.toStdString()))
if (!p.loadPlatformFile(applicationFilePath.toStdString().c_str(), platformFile.toStdString()))
continue;
if (platformFiles.indexOf(platformFile) == -1)