Improve connection manager #80

Merged
eelke merged 12 commits from improve-connection-manager into master 2019-09-01 08:19:23 +00:00
Showing only changes of commit bf8bb087e7 - Show all commits

View file

@ -158,8 +158,10 @@ void ConnectionConfigurationWidget::retranslateUi()
void ConnectionConfigurationWidget::setData(const ConnectionConfig &cfg)
{
auto group = cfg.parent();
auto group_idx = m_connectionModel->findGroup(group->conngroup_id);
cmbbxGroup->setCurrentIndex(group_idx);
if (group) {
auto group_idx = m_connectionModel->findGroup(group->conngroup_id);
cmbbxGroup->setCurrentIndex(group_idx);
}
m_uuid = cfg.uuid();
edtName->setText(stdStrToQ(cfg.name()));