Fixed #1226 (GUI: project include file relative path search problem)

This commit is contained in:
Kimmo Varis 2010-01-06 01:40:26 +02:00
parent 16df0e69b2
commit 5bb3c5898b
1 changed files with 7 additions and 1 deletions

View File

@ -27,6 +27,7 @@
#include <QToolBar>
#include <QKeySequence>
#include <QFileInfo>
#include <QDir>
#include "aboutdialog.h"
#include "threadhandler.h"
#include "fileviewdialog.h"
@ -315,7 +316,12 @@ Settings MainWindow::GetCppcheckSettings()
QString dir;
foreach(dir, dirs)
{
result._includePaths.push_back(dir.toStdString());
QString incdir;
if (!QDir::isAbsolutePath(dir))
incdir = mCurrentDirectory + "/";
incdir += dir;
incdir = QDir::cleanPath(incdir);
result._includePaths.push_back(incdir.toStdString());
}
}
}