Skip to content
Permalink
Browse files

Only pick up qpt files in composer manager

  • Loading branch information
NathanW2 committed Nov 13, 2015
1 parent 31ac9be commit 860682c145cdd5e18138208f08ae53baf838cb03
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/app/composer/qgscomposermanager.cpp
@@ -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;
}

0 comments on commit 860682c

Please sign in to comment.
You can’t perform that action at this time.