mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
expression builder widget: save scripts in the same mode they are loaded
(avoids adding empty lines on every save on windows)
This commit is contained in:
parent
9eb495364b
commit
37a7831d2a
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user