Mercurial > hg > svgui
comparison widgets/LevelPanToolButton.cpp @ 931:7cf497b72da3 tonioni
Fixes to muting from level-pan tool button
author | Chris Cannam |
---|---|
date | Wed, 25 Mar 2015 11:09:33 +0000 |
parents | 86df7de08e03 |
children | 37bb4b416c52 |
comparison
equal
deleted
inserted
replaced
930:86df7de08e03 | 931:7cf497b72da3 |
---|---|
105 cerr << "selfClicked" << endl; | 105 cerr << "selfClicked" << endl; |
106 | 106 |
107 if (m_muted) { | 107 if (m_muted) { |
108 m_muted = false; | 108 m_muted = false; |
109 m_lpw->setLevel(m_savedLevel); | 109 m_lpw->setLevel(m_savedLevel); |
110 emit levelChanged(m_savedLevel); | |
110 } else { | 111 } else { |
111 m_savedLevel = m_lpw->getLevel(); | 112 m_savedLevel = m_lpw->getLevel(); |
112 m_muted = true; | 113 m_muted = true; |
113 m_lpw->setLevel(0.f); | 114 m_lpw->setLevel(0.f); |
115 emit levelChanged(0.f); | |
114 } | 116 } |
115 redraw(); | 117 redraw(); |
116 } | 118 } |
117 | 119 |
118 void | 120 void |