| 101 | } |
| 102 | |
| 103 | SessionManager::SessionManager(QObject *parent) |
| 104 | : QObject(parent), |
| 105 | d(new SessionManagerPrivate(this)) |
| 106 | { |
| 107 | d->readSettings(); |
| 108 | connect(qApp, &QApplication::aboutToQuit, this, [this] { |
| 109 | if (!isSessionLoading() && !isDefaultVirgin()) |
| 110 | saveSession(); |
| 111 | d->saveSettings(); |
| 112 | }); |
| 113 | } |
| 114 | |
| 115 | SessionManager::~SessionManager() |
| 116 | { |
nothing calls this directly
no test coverage detected