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:
parent
d0bf13aa72
commit
e368d03222
@ -223,7 +223,7 @@ void PrimaryConfigView::deleteSecondaryWindow()
|
||||
m_secConfigView = nullptr;
|
||||
secWindow->deleteLater();
|
||||
|
||||
if (KWindowSystem::isPlatformX11()) {
|
||||
if (KWindowSystem::isPlatformX11() && m_latteView->effects()) {
|
||||
//! this is needed in order for subtracked mask of secondary window to
|
||||
//! be released properly when changing for Advanced to Basic mode.
|
||||
//! Under wayland this is not needed because masks do not break any visuals.
|
||||
|
@ -195,7 +195,7 @@ View::~View()
|
||||
//! this->disconnect();
|
||||
|
||||
if (m_configView) {
|
||||
m_configView->deleteLater();
|
||||
delete m_configView;
|
||||
}
|
||||
|
||||
if (m_contextMenu) {
|
||||
|
Loading…
Reference in New Issue
Block a user