Commit 423ff131 authored by Burkhard Lück's avatar Burkhard Lück
Browse files

Fix wrong computation of volume % value in muted state in tooltip

REVIEW:115124
parent 7ec3b13c
......@@ -126,7 +126,7 @@ VolumePopupButton::muteStateChanged( bool muted )
{
const float volume = JuK::JuKInstance()->playerManager()->volume();
setIcon( KIcon( "audio-volume-muted" ) );
setToolTip( i18n( "Volume: %1% %2", volume, ( muted ? i18n( "(muted)" ) : "" ) ) );
setToolTip( i18n( "Volume: %1% %2", int( 100 * volume ), i18n( "(muted)" ) ) );
}
else
{
......@@ -168,3 +168,4 @@ VolumePopupButton::wheelEvent( QWheelEvent * event )
}
#include "volumepopupbutton.moc"
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