Changed: Save when clicking on OK

--HG--
branch : feature-ryzom-installer
feature/pipeline-tools
kervala 9 years ago
parent d446dd3942
commit 95f6b154fb

@ -50,6 +50,8 @@ CProfilesDialog::~CProfilesDialog()
void CProfilesDialog::accept() void CProfilesDialog::accept()
{ {
saveProfile(m_currentProfileIndex);
m_model->save(); m_model->save();
QDialog::accept(); QDialog::accept();

@ -43,6 +43,7 @@ bool CProfilesModel::removeRows(int row, int count, const QModelIndex &parent)
bool CProfilesModel::save() const bool CProfilesModel::save() const
{ {
CConfigFile::getInstance()->setProfiles(m_profiles); CConfigFile::getInstance()->setProfiles(m_profiles);
CConfigFile::getInstance()->save();
return true; return true;
} }

Loading…
Cancel
Save