MCPcopy Create free account
hub / github.com/MiniZinc/MiniZincIDE / on_tabWidget_currentChanged

Method on_tabWidget_currentChanged

MiniZincIDE/preferencesdialog.cpp:852–863  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

850}
851
852void 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
866void PreferencesDialog::accept()

Callers

nothing calls this directly

Calls 1

setCurrentIndexMethod · 0.80

Tested by

no test coverage detected