Use completeBaseName instead of baseName where appropriate

Fixes issues with handling additional dots in the filename in many
places.

Task: 246390
This commit is contained in:
Thorbjørn Lindeijer
2009-03-20 16:13:46 +01:00
parent 937010f507
commit 71aeac5915
14 changed files with 28 additions and 49 deletions

View File

@@ -824,7 +824,7 @@ void GitPlugin::updateActions()
if (m_projectExplorer) {
if (Node *node = m_projectExplorer->currentNode())
if (Node *projectNode = node->projectNode())
project = '"' + QFileInfo(projectNode->path()).baseName() + '"';
project = '"' + QFileInfo(projectNode->path()).completeBaseName() + '"';
}
enabled = !project.isEmpty();