mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-13 02:39:34 +00:00
Changed: Save when clicking on OK
This commit is contained in:
parent
62301dd8d1
commit
7e4081ab33
2 changed files with 3 additions and 0 deletions
|
@ -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…
Reference in a new issue