mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-27 00:33:48 -05:00
Only pick up qpt files in composer manager
This commit is contained in:
parent
31ac9be340
commit
860682c145
@ -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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user