Skip to content
Permalink
Browse files

expression builder widget: save scripts in the same mode they are loaded

(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 dced88d8831e1ac313458d9633581347fd8fb0cc
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/gui/qgsexpressionbuilderwidget.cpp
@@ -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;

0 comments on commit dced88d

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