summaryrefslogtreecommitdiffhomepage
path: root/facetracknoir
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2014-11-23 14:17:03 +0100
committerStanislaw Halik <sthalik@misaki.pl>2014-11-23 14:17:03 +0100
commitcccd2a23513b6094a8e9c0c68d2c56596fddb4f6 (patch)
tree308e714b0d827673a15c19e0cc528b119f6abc80 /facetracknoir
parent950886d14eafae14ff789c285c9319222ed3b449 (diff)
copy old config when saving
Issue: #96
Diffstat (limited to 'facetracknoir')
-rw-r--r--facetracknoir/ui.cpp1
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);
}