Skip to content

Commit

Permalink
expression builder widget: save scripts in the same mode they are loaded
Browse files Browse the repository at this point in the history
(avoids adding empty lines on every save on windows)

(cherry picked from commit 37a7831)
  • Loading branch information
jef-n committed Mar 6, 2015
1 parent e2fcf6f commit dced88d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsexpressionbuilderwidget.cpp
Expand Up @@ -149,7 +149,7 @@ void QgsExpressionBuilderWidget::saveFunctionFile( QString fileName )

fileName = mFunctionsPath + QDir::separator() + fileName;
QFile myFile( fileName );
if ( myFile.open( QIODevice::WriteOnly | QIODevice::Text ) )
if ( myFile.open( QIODevice::WriteOnly ) )
{
QTextStream myFileStream( &myFile );
myFileStream << txtPython->text() << endl;
Expand Down

0 comments on commit dced88d

Please sign in to comment.