guard m_parent caller at secconfigview

BUG: 403406
pull/4/head
Michail Vourlakos 6 years ago
parent ad3b5abeaf
commit 990b8868cd

@ -124,7 +124,10 @@ void SecondaryConfigView::init()
syncGeometry(); syncGeometry();
syncSlideEffect(); syncSlideEffect();
m_parent->requestActivate(); if (m_parent) {
m_parent->requestActivate();
}
qDebug() << "dock secondary config view : initialization ended..."; qDebug() << "dock secondary config view : initialization ended...";
} }
@ -204,7 +207,9 @@ void SecondaryConfigView::syncGeometry()
//! after placement request to activate the main config window in order to avoid //! after placement request to activate the main config window in order to avoid
//! rare cases of closing settings window from secondaryConfigView->focusOutEvent //! rare cases of closing settings window from secondaryConfigView->focusOutEvent
m_parent->requestActivate(); if (m_parent) {
m_parent->requestActivate();
}
} }
void SecondaryConfigView::syncSlideEffect() void SecondaryConfigView::syncSlideEffect()

Loading…
Cancel
Save