Commit 15cc2970 authored by Alessandro Portale's avatar Alessandro Portale
Browse files

Fix a broken user visible path on Windows.

Use native directory delimiters when showing a path to the user.

Reviewed-by: TrustMe
parent e807e4f1
......@@ -225,8 +225,9 @@ void Qt4ProjectManagerPlugin::updateContextMenu(Project *project,
m_runQMakeActionContextMenu->setVisible(true);
m_buildSubProjectContextMenu->setVisible(true);
m_runQMakeActionContextMenu->setText(tr("Run qmake in %1").arg(proFileNode->buildDir()));
m_buildSubProjectContextMenu->setText(tr("Build in %1").arg(proFileNode->buildDir()));
const QString nativeBuildDir = QDir::toNativeSeparators(proFileNode->buildDir());
m_runQMakeActionContextMenu->setText(tr("Run qmake in %1").arg(nativeBuildDir));
m_buildSubProjectContextMenu->setText(tr("Build in %1").arg(nativeBuildDir));
if (!m_projectExplorer->buildManager()->isBuilding(project)) {
m_runQMakeActionContextMenu->setEnabled(true);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment