MCPcopy Create free account
hub / github.com/Cubitect/cubiomes-viewer / saveSession

Method saveSession

src/mainwindow.cpp:567–579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

565}
566
567bool MainWindow::saveSession(QString path, bool quiet)
568{
569 QFile file(path);
570 if (!file.open(QIODevice::WriteOnly))
571 {
572 if (!quiet)
573 warn(this, tr("Failed to open file:\n\"%1\"").arg(path));
574 return false;
575 }
576
577 QTextStream stream(&file);
578 return saveSession(stream);
579}
580
581bool MainWindow::loadSession(QString fnam, bool keepresults)
582{

Callers

nothing calls this directly

Calls 6

warnFunction · 0.85
getSearchConfigMethod · 0.80
getConditionsMethod · 0.80
getResultsMethod · 0.80
getConfigMethod · 0.45
saveMethod · 0.45

Tested by

no test coverage detected