Fix segfault when starting up from the session chooser
When launching an existing session from the session chooser without the Kate main window yet present the client->factory()
returns a nullptr, so calling ->clients()
on it crashes.
When launching an existing session from the session chooser without the Kate main window yet present the client->factory()
returns a nullptr, so calling ->clients()
on it crashes.