Commit ade58189 authored by Ömer Fadıl Usta's avatar Ömer Fadıl Usta 😊 Committed by Albert Astals Cid
Browse files

Fix crash by adding missing initialize part for KToggleAction

(cherry picked from commit f770d6f3)
parent db6079a3
Pipeline #93820 skipped
......@@ -56,6 +56,7 @@ KMixDockWidget::KMixDockWidget(KXmlGuiWindow *parent)
, _oldPixmapType('-')
, _kmixMainWindow(parent)
, _delta(0)
, _dockMuteAction(nullptr)
{
setToolTipIconByName("kmix");
setTitle(i18n("Volume Control"));
......@@ -88,7 +89,7 @@ KMixDockWidget::KMixDockWidget(KXmlGuiWindow *parent)
ControlManager::Volume|ControlManager::MasterChanged,
this,
QString("KMixDockWidget"));
// Refresh in all cases. When there is no global master we still need
// to initialize correctly (e.g. for showing 0% or hiding it)
refreshVolumeLevels();
......
Markdown is supported
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