| 939 | } |
| 940 | |
| 941 | void ConfigWindow::on_reset_pushButton_clicked() |
| 942 | { |
| 943 | auto sc = currentSolverConfig(); |
| 944 | if (!sc || !sc->isBuiltin) { |
| 945 | return; |
| 946 | } |
| 947 | |
| 948 | auto* newSc = new SolverConfiguration(sc->solverDefinition, true); |
| 949 | int i = currentIndex(); |
| 950 | delete configs[i]; |
| 951 | configs.replace(i, newSc); |
| 952 | updateGUI(true); |
| 953 | populateComboBox(); |
| 954 | } |
| 955 | |
| 956 | ConfigWindow::StashItem::StashItem(SolverConfiguration* sc) : |
| 957 | json(sc->toJSONObject()), |
nothing calls this directly
no outgoing calls
no test coverage detected