Apply settings before saving style, otherwise unapplied settings are not written to qml file
Merge pull request #1335 from manisandro/apply_settings_when_saving_style

Apply settings before saving style, otherwise unapplied settings are not written to qml file