diff --git a/plugins/zynaddsubfx/ZynAddSubFx.cpp b/plugins/zynaddsubfx/ZynAddSubFx.cpp index 774f58047..b8a2e5906 100644 --- a/plugins/zynaddsubfx/ZynAddSubFx.cpp +++ b/plugins/zynaddsubfx/ZynAddSubFx.cpp @@ -157,6 +157,7 @@ void ZynAddSubFxInstrument::loadSettings( const QDomElement & _this ) QByteArray a = doc.toString( 0 ).toUtf8(); a.prepend( "\n" ); tf.write( a ); + tf.flush(); const std::string fn = QSTR_TO_STDSTR( QDir::toNativeSeparators( tf.fileName() ) );