diff view/Pane.cpp @ 1468:de41a11cabc2

Add opportunistic-editing toggle
author Chris Cannam
date Thu, 13 Jun 2019 15:35:01 +0100
parents f9110e5afca1
children 84c4ddb38415
line wrap: on
line diff
--- a/view/Pane.cpp	Thu Jun 13 15:05:25 2019 +0100
+++ b/view/Pane.cpp	Thu Jun 13 15:35:01 2019 +0100
@@ -2189,8 +2189,9 @@
         return;
     }
 
-    if (mode == ViewManager::NavigateMode ||
-        mode == ViewManager::EditMode) {
+    if (mode == ViewManager::EditMode ||
+        (mode == ViewManager::NavigateMode &&
+         m_manager->getOpportunisticEditingEnabled())) {
 
         Layer *layer = getInteractionLayer();
         if (layer && layer->isLayerEditable()) {