GUI: Use canonical path as checking path.
Cleanup the path name before starting checking and saving it.
This commit is contained in:
parent
7dbe5b547a
commit
2a294babc3
|
@ -232,15 +232,15 @@ void MainWindow::DoCheckFiles(const QStringList &files)
|
||||||
|
|
||||||
mThread->SetFiles(fileNames);
|
mThread->SetFiles(fileNames);
|
||||||
QDir inf(mCurrentDirectory);
|
QDir inf(mCurrentDirectory);
|
||||||
const QString absDirectory = inf.absolutePath();
|
const QString checkPath = inf.canonicalPath();
|
||||||
mSettings->setValue(SETTINGS_CHECK_PATH, absDirectory);
|
mSettings->setValue(SETTINGS_CHECK_PATH, checkPath);
|
||||||
EnableCheckButtons(false);
|
EnableCheckButtons(false);
|
||||||
mUI.mActionSettings->setEnabled(false);
|
mUI.mActionSettings->setEnabled(false);
|
||||||
mUI.mActionOpenXML->setEnabled(false);
|
mUI.mActionOpenXML->setEnabled(false);
|
||||||
mUI.mActionNewProjectFile->setEnabled(false);
|
mUI.mActionNewProjectFile->setEnabled(false);
|
||||||
mUI.mActionOpenProjectFile->setEnabled(false);
|
mUI.mActionOpenProjectFile->setEnabled(false);
|
||||||
|
|
||||||
mUI.mResults->SetCheckDirectory(absDirectory);
|
mUI.mResults->SetCheckDirectory(checkPath);
|
||||||
|
|
||||||
Settings checkSettings = GetCppcheckSettings();
|
Settings checkSettings = GetCppcheckSettings();
|
||||||
mThread->Check(checkSettings, false);
|
mThread->Check(checkSettings, false);
|
||||||
|
|
Loading…
Reference in New Issue