MCPcopy Create free account
hub / github.com/KDE/kdevelop / cleanup

Method cleanup

kdevplatform/shell/sessioncontroller.cpp:317–333  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

315}
316
317void 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
335void SessionController::initialize( const QString& session )
336{

Callers

nothing calls this directly

Calls 4

isTemporaryMethod · 0.80
toStringMethod · 0.45
idMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected