| 292 | } |
| 293 | |
| 294 | void EnvironmentWidget::removeSelectedProfile() |
| 295 | { |
| 296 | if (ui.profileSelect->count() <= 1) { |
| 297 | return; |
| 298 | } |
| 299 | |
| 300 | const int selectedProfileIndex = ui.profileSelect->currentIndex(); |
| 301 | |
| 302 | m_environmentProfileListModel->removeProfile(selectedProfileIndex); |
| 303 | |
| 304 | const int defaultProfileIndex = m_environmentProfileListModel->defaultProfileIndex(); |
| 305 | ui.profileSelect->setCurrentIndex(defaultProfileIndex); |
| 306 | } |
| 307 | |
| 308 | void EnvironmentWidget::onDefaultProfileChanged(int defaultProfileIndex) |
| 309 | { |
nothing calls this directly
no test coverage detected