Skip to content

Commit

Permalink
Only pick up qpt files in composer manager
Browse files Browse the repository at this point in the history
  • Loading branch information
NathanW2 committed Nov 13, 2015
1 parent 31ac9be commit 860682c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/app/composer/qgscomposermanager.cpp
Expand Up @@ -179,7 +179,10 @@ QMap<QString, QString> QgsComposerManager::templatesFromPath( QString path ) con
QFileInfoList::const_iterator infoIt = fileInfoList.constBegin();
for ( ; infoIt != fileInfoList.constEnd(); ++infoIt )
{
templateMap.insert( infoIt->baseName(), infoIt->absoluteFilePath() );
if ( infoIt->suffix().toLower() == "qpt" )
{
templateMap.insert( infoIt->baseName(), infoIt->absoluteFilePath() );
}
}
return templateMap;
}
Expand Down

0 comments on commit 860682c

Please sign in to comment.