From a72e76be2f3577e3bc990d0df159222f6867fc50 Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 12 Mar 2016 22:00:12 +0100 Subject: [PATCH] Changed: Update index in servers list --- .../tools/client/ryzom_installer/src/profilesdialog.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/code/ryzom/tools/client/ryzom_installer/src/profilesdialog.cpp b/code/ryzom/tools/client/ryzom_installer/src/profilesdialog.cpp index 9d0f0a4ed..62eabc346 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/profilesdialog.cpp +++ b/code/ryzom/tools/client/ryzom_installer/src/profilesdialog.cpp @@ -97,7 +97,7 @@ void CProfilesDialog::displayProfile(int index) profileIdLabel->setText(QString::number(profile.id)); accountEdit->setText(profile.account); nameEdit->setText(profile.name); - serverComboBox->setCurrentIndex(0); + serverComboBox->setCurrentIndex(m_serversModel->getIndexFromServerID(profile.server)); executablePathLabel->setText(QFileInfo(profile.executable).fileName()); argumentsEdit->setText(profile.arguments); commentsEdit->setPlainText(profile.comments); @@ -115,11 +115,10 @@ void CProfilesDialog::saveProfile(int index) if (index < 0) return; CProfile &profile = m_model->getProfiles()[index]; - - profileIdLabel->setText(QString::number(profile.id)); + profile.account = accountEdit->text(); profile.name = nameEdit->text(); -// serverComboBox->setCurrentIndex(0); + profile.server = m_serversModel->getServerIDFromIndex(serverComboBox->currentIndex()); profile.arguments = argumentsEdit->text(); profile.comments = commentsEdit->toPlainText(); }