From d4903c0f3d14c0831e710548739aa8f595f8bc5f Mon Sep 17 00:00:00 2001 From: xarkes Date: Wed, 28 Mar 2018 11:25:40 +0200 Subject: [PATCH] Pseudo fix for #422 --- src/dialogs/SaveProjectDialog.cpp | 3 ++- src/utils/Configuration.cpp | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/dialogs/SaveProjectDialog.cpp b/src/dialogs/SaveProjectDialog.cpp index 4baee57f..724641c2 100644 --- a/src/dialogs/SaveProjectDialog.cpp +++ b/src/dialogs/SaveProjectDialog.cpp @@ -78,7 +78,8 @@ void SaveProjectDialog::on_buttonBox_clicked(QAbstractButton *button) void SaveProjectDialog::accept() { TempConfig tempConfig; - tempConfig.set("dir.projects", ui->projectsDirEdit->text().toUtf8().constData()) + Config()->setDirProjects(ui->projectsDirEdit->text().toUtf8().constData()); + tempConfig.set("dir.projects", Config()->getDirProjects()) .set("prj.simple", ui->simpleCheckBox->isChecked()) .set("prj.files", ui->filesCheckBox->isChecked()) .set("prj.git", ui->gitCheckBox->isChecked()) diff --git a/src/utils/Configuration.cpp b/src/utils/Configuration.cpp index 60cd9fdf..d9902db2 100644 --- a/src/utils/Configuration.cpp +++ b/src/utils/Configuration.cpp @@ -71,7 +71,6 @@ QString Configuration::getDirProjects() void Configuration::setDirProjects(const QString &dir) { - Core()->setConfig("dir.projects", dir); s.setValue("dir.projects", dir); } @@ -286,4 +285,4 @@ void Configuration::setConfig(const QString &key, const QVariant &value) } Core()->setConfig(key, value); -} \ No newline at end of file +}