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

Please sign in to comment.