| 333 | } |
| 334 | |
| 335 | void InstanceManagerDialog::selectActiveInstance() |
| 336 | { |
| 337 | const auto active = InstanceManager::singleton().currentInstance(); |
| 338 | |
| 339 | if (active) { |
| 340 | for (std::size_t i = 0; i < m_instances.size(); ++i) { |
| 341 | if (m_instances[i]->displayName() == active->displayName()) { |
| 342 | select(i); |
| 343 | |
| 344 | ui->list->scrollTo(m_filter.mapFromSource(m_filter.sourceModel()->index(i, 0))); |
| 345 | |
| 346 | return; |
| 347 | } |
| 348 | } |
| 349 | } |
| 350 | |
| 351 | select(0); |
| 352 | } |
| 353 | |
| 354 | void InstanceManagerDialog::openSelectedInstance() |
| 355 | { |
nothing calls this directly
no test coverage detected