Commit 645eba99 authored by Konrad Materka's avatar Konrad Materka
Browse files

applets/systemtray: Do not delay menuImporter deletion

BUG: 442463
FIXED-IN: 5.24.0
parent 6721c2ec
Pipeline #127835 passed with stage
in 7 minutes and 45 seconds
......@@ -194,7 +194,7 @@ void StatusNotifierItemSource::syncStatus(const QString &status)
void StatusNotifierItemSource::refreshMenu()
{
if (m_menuImporter) {
m_menuImporter->deleteLater();
delete m_menuImporter;
m_menuImporter = nullptr;
}
refresh();
......
......@@ -170,7 +170,7 @@ void StatusNotifierItemSource::refreshToolTip()
void StatusNotifierItemSource::refreshMenu()
{
if (m_menuImporter) {
m_menuImporter->deleteLater();
delete m_menuImporter;
m_menuImporter = nullptr;
}
refresh();
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment