| 2298 | } |
| 2299 | |
| 2300 | void MainWindow::selectionBad() |
| 2301 | { |
| 2302 | // start by reseting everything... |
| 2303 | m_selectedInstance = nullptr; |
| 2304 | |
| 2305 | statusBar()->clearMessage(); |
| 2306 | ui->instanceToolBar->setEnabled(false); |
| 2307 | ui->setInstanceActionsEnabled(false); |
| 2308 | updateToolsMenu(); |
| 2309 | ui->renameButton->setText(tr("Rename Instance")); |
| 2310 | updateInstanceToolIcon("grass"); |
| 2311 | |
| 2312 | // ...and then see if we can enable the previously selected instance |
| 2313 | setSelectedInstanceById(APPLICATION->settings()->get("SelectedInstance").toString()); |
| 2314 | } |
| 2315 | |
| 2316 | void MainWindow::checkInstancePathForProblems() |
| 2317 | { |
nothing calls this directly
no test coverage detected