| 315 | } |
| 316 | |
| 317 | void SessionController::cleanup() |
| 318 | { |
| 319 | Q_D(SessionController); |
| 320 | |
| 321 | if (d->activeSession) { |
| 322 | Q_ASSERT(d->activeSession->id().toString() == d->sessionLock->id()); |
| 323 | |
| 324 | if (d->activeSession->isTemporary()) { |
| 325 | deleteSessionFromDisk(d->sessionLock); |
| 326 | } |
| 327 | d->activeSession = nullptr; |
| 328 | } |
| 329 | |
| 330 | d->sessionLock.clear(); |
| 331 | qDeleteAll(d->sessionActions); |
| 332 | d->sessionActions.clear(); |
| 333 | } |
| 334 | |
| 335 | void SessionController::initialize( const QString& session ) |
| 336 | { |
nothing calls this directly
no test coverage detected