Skip to content

Commit

Permalink
don't write project files with native line endings on windows
Browse files Browse the repository at this point in the history
(fixes #6407, fixes #7735, fixes #8267)
  • Loading branch information
jef-n committed Jun 22, 2014
1 parent b73c870 commit d62a498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgsproject.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d62a498

Please sign in to comment.