mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-11-27 09:36:15 +00:00
Changed: Update index in servers list
This commit is contained in:
parent
63dddb4df8
commit
a72e76be2f
1 changed files with 3 additions and 4 deletions
|
@ -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);
|
||||
|
@ -116,10 +116,9 @@ void CProfilesDialog::saveProfile(int index)
|
|||
|
||||
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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue