From 95f6b154fbf5f65a1b98516ef51bb56dfcda4715 Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 12 Mar 2016 22:00:43 +0100 Subject: [PATCH] Changed: Save when clicking on OK --HG-- branch : feature-ryzom-installer --- code/ryzom/tools/client/ryzom_installer/src/profilesdialog.cpp | 2 ++ code/ryzom/tools/client/ryzom_installer/src/profilesmodel.cpp | 1 + 2 files changed, 3 insertions(+) diff --git a/code/ryzom/tools/client/ryzom_installer/src/profilesdialog.cpp b/code/ryzom/tools/client/ryzom_installer/src/profilesdialog.cpp index 62eabc346..1904c604b 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/profilesdialog.cpp +++ b/code/ryzom/tools/client/ryzom_installer/src/profilesdialog.cpp @@ -50,6 +50,8 @@ CProfilesDialog::~CProfilesDialog() void CProfilesDialog::accept() { + saveProfile(m_currentProfileIndex); + m_model->save(); QDialog::accept(); diff --git a/code/ryzom/tools/client/ryzom_installer/src/profilesmodel.cpp b/code/ryzom/tools/client/ryzom_installer/src/profilesmodel.cpp index 1977b423b..64f15c5d5 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/profilesmodel.cpp +++ b/code/ryzom/tools/client/ryzom_installer/src/profilesmodel.cpp @@ -43,6 +43,7 @@ bool CProfilesModel::removeRows(int row, int count, const QModelIndex &parent) bool CProfilesModel::save() const { CConfigFile::getInstance()->setProfiles(m_profiles); + CConfigFile::getInstance()->save(); return true; }