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@10007 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Jan 24, 2009
1 parent c87e63a commit 556b0a2
Showing 1 changed file with 1 addition and 1 deletion.
@@ -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 556b0a2

Please sign in to comment.