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)
  • Loading branch information
jef-n committed Mar 6, 2015
1 parent 9eb4953 commit 37a7831d2a1571616f10d20a476b71f1d539cc5d
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 37a7831

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