Skip to content
Permalink
Browse files

Save templates in WriteOnly mode to prevent problems with already exi…

…sting file content

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@10007 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent
mhugent committed Jan 24, 2009
1 parent baf998f commit 5c5d707b137cbc396a101aa253ce626220302149
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/composer/qgscomposer.cpp
@@ -766,7 +766,7 @@ void QgsComposer::on_mActionSaveAsTemplate_activated(void)
settings.setValue("UI/LastComposerTemplateDir", saveFileInfo.absolutePath());

QFile templateFile(saveFileName);
if(!templateFile.open(QIODevice::ReadWrite))
if(!templateFile.open(QIODevice::WriteOnly))
{
return;
}

0 comments on commit 5c5d707

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