| 850 | } |
| 851 | |
| 852 | void PreferencesDialog::on_tabWidget_currentChanged(int index) |
| 853 | { |
| 854 | updateSearchPaths(); |
| 855 | if (index == 1 && !_solversPopulated) { |
| 856 | populateSolvers(); |
| 857 | on_solvers_combo_currentIndexChanged(0); |
| 858 | } |
| 859 | // Cannot change out of solver tab if changes invalid |
| 860 | if (index != 1 && !updateSolver()) { |
| 861 | ui->tabWidget->setCurrentIndex(1); |
| 862 | } |
| 863 | } |
| 864 | |
| 865 | |
| 866 | void PreferencesDialog::accept() |
nothing calls this directly
no test coverage detected