X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=app%2Faudiorole.cpp;fp=app%2Faudiorole.cpp;h=7351d13cace9dfb04e81548938c91382cb25ce10;hb=d4ed0297e4b918ab67a1d1cd2337c307bb16caa2;hp=5fad48f0db62859fd3c384a67bf61ba06ee1ad6d;hpb=0f19df88ec387747300c9da05987f794a19461cc;p=apps%2Fmixer.git diff --git a/app/audiorole.cpp b/app/audiorole.cpp index 5fad48f..7351d13 100644 --- a/app/audiorole.cpp +++ b/app/audiorole.cpp @@ -37,8 +37,7 @@ void AudioRole::setValue(int value) if (m_Value != value) { m_Value = value; - if (m_Updating == 0) - emit ValueChanged(); + emit ValueChanged(); } } @@ -47,8 +46,11 @@ void AudioRole::BeginUpdate() m_Updating++; } -void AudioRole::EndUpdate() +bool AudioRole::EndUpdate() { - if (m_Updating > 0) m_Updating--; - //if (m_Updating == 0) emit ValueChanged(); + if (m_Updating > 0) { + m_Updating--; + return true; + } + return false; }