Diffusion Kate 65931bea1277

cleanup code, ensure always one windows exists after session loading

Authored by cullmann on Jul 13 2019, 3:54 PM.

Description

cleanup code, ensure always one windows exists after session loading

Differential Revision: https://phabricator.kde.org/D21876

Details

ahmadsamir added inline comments.
/kate/session/katesessionmanager.cpp
229

hmmm... if w is null we get a crash here, right?; maybe add a QASSERT here too, since at this point if newMainWindow() failed, kate isn't doing too well.

newMainWindow can't return nullptr.

newMainWindow can't return nullptr.

OK, thanks for explaining (and sorry about the noise).