Skip to content

Commit dced88d

Browse files
committedMar 6, 2015
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)
1 parent e2fcf6f commit dced88d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/gui/qgsexpressionbuilderwidget.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ void QgsExpressionBuilderWidget::saveFunctionFile( QString fileName )
149149

150150
fileName = mFunctionsPath + QDir::separator() + fileName;
151151
QFile myFile( fileName );
152-
if ( myFile.open( QIODevice::WriteOnly | QIODevice::Text ) )
152+
if ( myFile.open( QIODevice::WriteOnly ) )
153153
{
154154
QTextStream myFileStream( &myFile );
155155
myFileStream << txtPython->text() << endl;

0 commit comments

Comments
 (0)
Please sign in to comment.