| 381 | } |
| 382 | |
| 383 | void DEV9SettingsWidget::onEthHostAdd() |
| 384 | { |
| 385 | HostEntryUi host; |
| 386 | host.Desc = "New Host"; |
| 387 | host.Enabled = false; |
| 388 | AddNewHostConfig(host); |
| 389 | |
| 390 | //Select new Item |
| 391 | const QModelIndex viewIndex = m_ethHosts_proxy->mapFromSource(m_ethHost_model->index(m_ethHost_model->rowCount() - 1, 1)); |
| 392 | m_ui.ethHosts->scrollTo(viewIndex, QAbstractItemView::EnsureVisible); |
| 393 | m_ui.ethHosts->selectionModel()->setCurrentIndex(viewIndex, QItemSelectionModel::ClearAndSelect); |
| 394 | } |
| 395 | |
| 396 | void DEV9SettingsWidget::onEthHostDel() |
| 397 | { |