summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--facetracknoir/ui.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/facetracknoir/ui.cpp b/facetracknoir/ui.cpp
index a9fcbbc7..4d5935c6 100644
--- a/facetracknoir/ui.cpp
+++ b/facetracknoir/ui.cpp
@@ -123,11 +123,10 @@ void MainWindow::save_mappings() {
void MainWindow::save() {
const QString currentFile = group::ini_pathname();
- // Qt5 refuses writing to empty file
- (void) QFile::remove(currentFile);
-
b->save();
save_mappings();
+ mem<QSettings> settings = group::ini_file();
+ settings->sync();
#if defined(__unix) || defined(__linux)
QByteArray bytes = QFile::encodeName(currentFile);