Commit a2b6a81b authored by Kurt Hindenburg's avatar Kurt Hindenburg

Add check for valid container (possible crash fix)

Possible fix for crashes from ambiguous shortcuts.  I have been unable
to duplicate the crashes.

CCBUG: 375540
parent a540e6fd
......@@ -918,6 +918,9 @@ void ViewManager::saveSessions(KConfigGroup& group)
// first: sessions in the active container, preserving the order
ViewContainer* container = _viewSplitter->activeContainer();
if (container == nullptr) {
TerminalDisplay* activeview = qobject_cast<TerminalDisplay*>(container->activeView());
QListIterator<QWidget*> viewIter(container->views());
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment