Skip to content
Permalink
Browse files

don't write project files with native line endings on windows

(fixes #6407, fixes #7735, fixes #8267)
  • Loading branch information
jef-n committed Jun 22, 2014
1 parent b73c870 commit d62a49810e6117d3b3815c9c2367f7ac745f054b
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/qgsproject.cpp
@@ -1055,7 +1055,7 @@ bool QgsProject::write()
// if we have problems creating or otherwise writing to the project file,
// let's find out up front before we go through all the hand-waving
// necessary to create all the Dom objects
if ( !imp_->file.open( QIODevice::WriteOnly | QIODevice::Text | QIODevice::Truncate ) )
if ( !imp_->file.open( QIODevice::WriteOnly | QIODevice::Truncate ) )
{
imp_->file.close(); // even though we got an error, let's make
// sure it's closed anyway

0 comments on commit d62a498

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