diff view/ViewManager.cpp @ 177:dbd34ff746c7

* Update the main sv.prf for compatibility with Qt 4.2 qmake instead of that from 4.1. Add a README.Qt41 describing how to build with 4.1 if preferred. * Add OSC support for control from external scripts etc (work in progress).
author Chris Cannam
date Fri, 10 Nov 2006 13:27:57 +0000
parents 9e6b3e239b9d
children 29f01de27db4
line wrap: on
line diff
--- a/view/ViewManager.cpp	Mon Oct 30 12:44:45 2006 +0000
+++ b/view/ViewManager.cpp	Fri Nov 10 13:27:57 2006 +0000
@@ -234,17 +234,25 @@
 void
 ViewManager::setPlayLoopMode(bool mode)
 {
-    m_playLoopMode = mode;
+    if (m_playLoopMode != mode) {
 
-    emit playLoopModeChanged();
+        m_playLoopMode = mode;
+
+        emit playLoopModeChanged();
+        emit playLoopModeChanged(mode);
+    }
 }
 
 void
 ViewManager::setPlaySelectionMode(bool mode)
 {
-    m_playSelectionMode = mode;
+    if (m_playSelectionMode != mode) {
 
-    emit playSelectionModeChanged();
+        m_playSelectionMode = mode;
+
+        emit playSelectionModeChanged();
+        emit playSelectionModeChanged(mode);
+    }
 }
 
 size_t