changeset 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 635b79462d3e
children 0135a026cbe1
files main/MainWindow.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/main/MainWindow.cpp	Tue Mar 03 21:48:03 2009 +0000
+++ b/main/MainWindow.cpp	Thu Mar 12 11:15:40 2009 +0000
@@ -1940,7 +1940,8 @@
 	(haveCurrentLayer &&
 	 dynamic_cast<TimeValueLayer *>(currentLayer));
     
-    emit canChangeSolo(havePlayTarget);
+    bool alignMode = m_viewManager && m_viewManager->getAlignMode();
+    emit canChangeSolo(havePlayTarget && !alignMode);
     emit canAlign(havePlayTarget && m_document && m_document->canAlign());
 
     emit canChangePlaybackSpeed(true);