mirror of
https://port.numenaute.org/aleajactaest/khanat-code-old.git
synced 2024-11-27 01:06:19 +00:00
Changed: Use profile default index instead of ID
This commit is contained in:
parent
13e6af9800
commit
8021da0efc
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ CProfilesDialog::CProfilesDialog():QDialog(), m_currentProfileIndex(-1)
|
||||||
profilesListView->setModel(m_model);
|
profilesListView->setModel(m_model);
|
||||||
serverComboBox->setModel(m_serversModel);
|
serverComboBox->setModel(m_serversModel);
|
||||||
|
|
||||||
int index = m_model->getIndexFromProfileID(CConfigFile::getInstance()->getDefaultProfileIndex());
|
int index = CConfigFile::getInstance()->getDefaultProfileIndex();
|
||||||
|
|
||||||
profilesListView->setCurrentIndex(m_model->index(index, 0));
|
profilesListView->setCurrentIndex(m_model->index(index, 0));
|
||||||
displayProfile(index);
|
displayProfile(index);
|
||||||
|
|
Loading…
Reference in a new issue