fix crash when destoying config window

pull/18/head
Michail Vourlakos 5 years ago
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…
Cancel
Save