delete secondary window when no needed

BUG: 402627
pull/4/head
Michail Vourlakos 6 years ago
parent ca5ea55816
commit e19cbd46f6

@ -165,9 +165,7 @@ void PrimaryConfigView::createSecondaryWindow()
void PrimaryConfigView::deleteSecondaryWindow() void PrimaryConfigView::deleteSecondaryWindow()
{ {
if (m_secConfigView) { if (m_secConfigView) {
auto secConfig = m_secConfigView; m_secConfigView->deleteLater();
m_secConfigView = nullptr;
secConfig->hideConfigWindow();
} }
} }

Loading…
Cancel
Save