Initialize the sound icon menu pointer
Fixes a crash when clicking the icon
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user