Changed: Use profile default index instead of ID

--HG--
branch : develop
This commit is contained in:
kervala 2016-05-16 14:46:35 +02:00
parent 1fed8f51a0
commit c1485f500a

View file

@ -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);