1
0
mirror of https://github.com/KDE/latte-dock.git synced 2025-01-22 18:03:54 +03:00

delete secondary window when no needed

BUG: 402627
This commit is contained in:
Michail Vourlakos 2018-12-28 17:11:43 +02:00
parent ca5ea55816
commit e19cbd46f6

View File

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