Skip to content

Commit 860682c

Browse files
committedNov 13, 2015
Only pick up qpt files in composer manager
1 parent 31ac9be commit 860682c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
 

‎src/app/composer/qgscomposermanager.cpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -179,7 +179,10 @@ QMap<QString, QString> QgsComposerManager::templatesFromPath( QString path ) con
179179
QFileInfoList::const_iterator infoIt = fileInfoList.constBegin();
180180
for ( ; infoIt != fileInfoList.constEnd(); ++infoIt )
181181
{
182-
templateMap.insert( infoIt->baseName(), infoIt->absoluteFilePath() );
182+
if ( infoIt->suffix().toLower() == "qpt" )
183+
{
184+
templateMap.insert( infoIt->baseName(), infoIt->absoluteFilePath() );
185+
}
183186
}
184187
return templateMap;
185188
}

0 commit comments

Comments
 (0)
Please sign in to comment.