Mercurial > hg > sonic-visualiser
comparison main/MainWindow.cpp @ 314:db14b2b3aedd
* Fix incorrect re-enabling of the Solo button when the active waveform
pane is changed in alignment mode (reported by Sampo Savolainen)
author | Chris Cannam |
---|---|
date | Thu, 12 Mar 2009 11:15:40 +0000 |
parents | 8e750332dc77 |
children | 75c3ab874c8e |
comparison
equal
deleted
inserted
replaced
313:635b79462d3e | 314:db14b2b3aedd |
---|---|
1938 dynamic_cast<TimeInstantLayer *>(currentLayer)); | 1938 dynamic_cast<TimeInstantLayer *>(currentLayer)); |
1939 bool haveCurrentTimeValueLayer = | 1939 bool haveCurrentTimeValueLayer = |
1940 (haveCurrentLayer && | 1940 (haveCurrentLayer && |
1941 dynamic_cast<TimeValueLayer *>(currentLayer)); | 1941 dynamic_cast<TimeValueLayer *>(currentLayer)); |
1942 | 1942 |
1943 emit canChangeSolo(havePlayTarget); | 1943 bool alignMode = m_viewManager && m_viewManager->getAlignMode(); |
1944 emit canChangeSolo(havePlayTarget && !alignMode); | |
1944 emit canAlign(havePlayTarget && m_document && m_document->canAlign()); | 1945 emit canAlign(havePlayTarget && m_document && m_document->canAlign()); |
1945 | 1946 |
1946 emit canChangePlaybackSpeed(true); | 1947 emit canChangePlaybackSpeed(true); |
1947 int v = m_playSpeed->value(); | 1948 int v = m_playSpeed->value(); |
1948 emit canSpeedUpPlayback(v < m_playSpeed->maximum()); | 1949 emit canSpeedUpPlayback(v < m_playSpeed->maximum()); |