mirror of
https://gitlab.com/mbunkus/mkvtoolnix.git
synced 2024-12-29 06:15:24 +00:00
Remove config before writing; fix re-writing config
This commit is contained in:
parent
b41b61ad24
commit
baec7b0304
@ -2,6 +2,7 @@
|
||||
|
||||
#include "mkvtoolnix-gui/mux_config.h"
|
||||
|
||||
#include <QFile>
|
||||
#include <QStringList>
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user