Initialize the sound icon menu pointer

Fixes a crash when clicking the icon
This commit is contained in:
Alexander Babikov
2025-03-07 05:21:16 +05:00
parent 1973289de3
commit 05a005b6f0

View File

@@ -259,6 +259,7 @@ MachineStatus::MachineStatus(QObject *parent)
{
d = std::make_unique<MachineStatus::States>(this);
muteUnmuteAction = nullptr;
soundMenu = nullptr;
connect(refreshTimer, &QTimer::timeout, this, &MachineStatus::refreshIcons);
refreshTimer->start(75);
}