| 1530 | } |
| 1531 | |
| 1532 | void MainWindowViewer::closeEvent(QCloseEvent *event) |
| 1533 | { |
| 1534 | if (isClient) |
| 1535 | sendComic(); |
| 1536 | |
| 1537 | viewer->save(); |
| 1538 | Configuration &conf = Configuration::getConfiguration(); |
| 1539 | // saveGeometry() encodes the current screen, the maximized/fullscreen state, and |
| 1540 | // the normal (pre-maximize) geometry in one blob, so restoreGeometry() puts the |
| 1541 | // window back on the right monitor in the right state regardless of how it was closed. |
| 1542 | conf.setGeometry(saveGeometry()); |
| 1543 | |
| 1544 | event->accept(); |
| 1545 | } |
| 1546 | |
| 1547 | void MainWindowViewer::openPreviousComic() |
| 1548 | { |
nothing calls this directly
no test coverage detected