From 2a294babc34ac758a476d7bc09e88d5ad138c2c0 Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Mon, 9 Aug 2010 22:25:43 +0300 Subject: [PATCH] GUI: Use canonical path as checking path. Cleanup the path name before starting checking and saving it. --- gui/mainwindow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gui/mainwindow.cpp b/gui/mainwindow.cpp index 00fec5463..a43f32039 100644 --- a/gui/mainwindow.cpp +++ b/gui/mainwindow.cpp @@ -232,15 +232,15 @@ void MainWindow::DoCheckFiles(const QStringList &files) mThread->SetFiles(fileNames); QDir inf(mCurrentDirectory); - const QString absDirectory = inf.absolutePath(); - mSettings->setValue(SETTINGS_CHECK_PATH, absDirectory); + const QString checkPath = inf.canonicalPath(); + mSettings->setValue(SETTINGS_CHECK_PATH, checkPath); EnableCheckButtons(false); mUI.mActionSettings->setEnabled(false); mUI.mActionOpenXML->setEnabled(false); mUI.mActionNewProjectFile->setEnabled(false); mUI.mActionOpenProjectFile->setEnabled(false); - mUI.mResults->SetCheckDirectory(absDirectory); + mUI.mResults->SetCheckDirectory(checkPath); Settings checkSettings = GetCppcheckSettings(); mThread->Check(checkSettings, false);