mirror of
https://github.com/KDE/latte-dock.git
synced 2025-02-10 09:57:35 +03:00
fix crash when destoying config window
This commit is contained in:
parent
dea32cb37a
commit
e6ab9385d8
@ -125,7 +125,7 @@ PrimaryConfigView::~PrimaryConfigView()
|
||||
delete m_secConfigView;
|
||||
}
|
||||
|
||||
if (m_latteView->indicator()) {
|
||||
if (m_latteView && m_latteView->indicator()) {
|
||||
//! destroy indicator config ui when the configuration window is closed
|
||||
m_latteView->indicator()->releaseConfigUi();
|
||||
}
|
||||
|
@ -31,6 +31,9 @@ ViewSettingsFactory::ViewSettingsFactory(QObject *parent)
|
||||
|
||||
ViewSettingsFactory::~ViewSettingsFactory()
|
||||
{
|
||||
if (m_primaryConfigView) {
|
||||
delete m_primaryConfigView;
|
||||
}
|
||||
}
|
||||
|
||||
ViewPart::PrimaryConfigView *ViewSettingsFactory::primary(Latte::View *view)
|
||||
|
Loading…
x
Reference in New Issue
Block a user