diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2014-11-23 14:17:03 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2014-11-23 14:17:03 +0100 |
commit | cccd2a23513b6094a8e9c0c68d2c56596fddb4f6 (patch) | |
tree | 308e714b0d827673a15c19e0cc528b119f6abc80 /facetracknoir | |
parent | 950886d14eafae14ff789c285c9319222ed3b449 (diff) |
copy old config when saving
Issue: #96
Diffstat (limited to 'facetracknoir')
-rw-r--r-- | facetracknoir/ui.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/facetracknoir/ui.cpp b/facetracknoir/ui.cpp index a7d41d45..b8f12490 100644 --- a/facetracknoir/ui.cpp +++ b/facetracknoir/ui.cpp @@ -152,6 +152,7 @@ void MainWindow::saveAs() (void) QFile::remove(fileName); { + (void) QFile::copy(oldFile, fileName); QSettings settings(group::org); settings.setValue (group::filename_key, fileName); } |