diff --git a/src/mkvtoolnix-gui/mux_config.cpp b/src/mkvtoolnix-gui/mux_config.cpp index e21c8ab34..66ea37cdd 100644 --- a/src/mkvtoolnix-gui/mux_config.cpp +++ b/src/mkvtoolnix-gui/mux_config.cpp @@ -2,6 +2,7 @@ #include "mkvtoolnix-gui/mux_config.h" +#include #include MuxConfig::MuxConfig() @@ -121,7 +122,8 @@ MuxConfig::save(QString const &fileName) { if (m_configFileName.isEmpty()) return; - QSettings settings{fileName, QSettings::IniFormat}; + QFile::remove(m_configFileName); + QSettings settings{m_configFileName, QSettings::IniFormat}; save(settings); }