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

Method findConfigFile

MiniZincIDE/configwindow.cpp:197–211  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

195}
196
197int ConfigWindow::findConfigFile(const QString &file)
198{
199 if (file.isEmpty()) {
200 // Unsaved configuration
201 return -1;
202 }
203 int i = 0;
204 for (auto sc : configs) {
205 if (sc->paramFile == file) {
206 return i;
207 }
208 i++;
209 }
210 return -1;
211}
212
213void ConfigWindow::stashModifiedConfigs()
214{

Callers 3

loadProjectMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected