1
0
mirror of https://github.com/KDE/latte-dock.git synced 2024-12-23 13:33:50 +03:00

fix crash from configwindow when switching layouts

This commit is contained in:
Michail Vourlakos 2020-04-20 10:38:01 +03:00
parent d0bf13aa72
commit e368d03222
2 changed files with 2 additions and 2 deletions

View File

@ -223,7 +223,7 @@ void PrimaryConfigView::deleteSecondaryWindow()
m_secConfigView = nullptr; m_secConfigView = nullptr;
secWindow->deleteLater(); secWindow->deleteLater();
if (KWindowSystem::isPlatformX11()) { if (KWindowSystem::isPlatformX11() && m_latteView->effects()) {
//! this is needed in order for subtracked mask of secondary window to //! this is needed in order for subtracked mask of secondary window to
//! be released properly when changing for Advanced to Basic mode. //! be released properly when changing for Advanced to Basic mode.
//! Under wayland this is not needed because masks do not break any visuals. //! Under wayland this is not needed because masks do not break any visuals.

View File

@ -195,7 +195,7 @@ View::~View()
//! this->disconnect(); //! this->disconnect();
if (m_configView) { if (m_configView) {
m_configView->deleteLater(); delete m_configView;
} }
if (m_contextMenu) { if (m_contextMenu) {