Fixed switching header/source with additional dots in the filename

For example when a file was called test.something.cpp, it would search
for test.h instead of test.something.h.
This commit is contained in:
Thorbjørn Lindeijer
2009-03-16 11:17:45 +01:00
parent 408b533d08
commit da4fcfbaf2
2 changed files with 13 additions and 13 deletions

View File

@@ -231,7 +231,7 @@ QString CppToolsPlugin::correspondingHeaderOrSourceI(const QString &fileName) co
return QString();
const QDir absoluteDir = fi.absoluteDir();
const QString baseName = fi.baseName();
const QString baseName = fi.completeBaseName();
const QStringList suffixes = matchingCandidateSuffixes(mimeDatase, type);
const QString privateHeaderSuffix = QLatin1String("_p");