Skip to content

Commit

Permalink
Save templates in WriteOnly mode to prevent problems with already exi…
Browse files Browse the repository at this point in the history
…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.
2 changes: 1 addition & 1 deletion src/app/composer/qgscomposer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 556b0a2

Please sign in to comment.