| 565 | } |
| 566 | |
| 567 | bool 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 | |
| 581 | bool MainWindow::loadSession(QString fnam, bool keepresults) |
| 582 | { |
nothing calls this directly
no test coverage detected