Skip to content

Instantly share code, notes, and snippets.

@jef-n
Created March 6, 2015 00:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jef-n/09e6db4925515620e0be to your computer and use it in GitHub Desktop.
Save jef-n/09e6db4925515620e0be to your computer and use it in GitHub Desktop.
diff --git a/src/gui/qgsexpressionbuilderwidget.cpp b/src/gui/qgsexpressionbuilderwidget.cpp
index f7182f5..49a434d 100644
--- a/src/gui/qgsexpressionbuilderwidget.cpp
+++ b/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;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment