| 640 | } |
| 641 | |
| 642 | void MainWindow::commitSession(QSessionManager& manager) |
| 643 | { |
| 644 | if (!d_document->isModified()) { |
| 645 | return; |
| 646 | } |
| 647 | |
| 648 | if (!manager.allowsInteraction()) { |
| 649 | return; |
| 650 | } |
| 651 | |
| 652 | bool ok = maybeSave(); |
| 653 | |
| 654 | manager.release(); |
| 655 | if (!ok) { |
| 656 | manager.cancel(); |
| 657 | } |
| 658 | } |
| 659 | |
| 660 | void MainWindow::currentFileChangedOnDisk() |
| 661 | { |
nothing calls this directly
no outgoing calls
no test coverage detected