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

Method on_reset_pushButton_clicked

MiniZincIDE/configwindow.cpp:941–954  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

939}
940
941void 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
956ConfigWindow::StashItem::StashItem(SolverConfiguration* sc) :
957 json(sc->toJSONObject()),

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected