comparison 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
comparison
equal deleted inserted replaced
1467:f9110e5afca1 1468:de41a11cabc2
2187 if (m_manager) m_manager->clearInProgressSelection(); 2187 if (m_manager) m_manager->clearInProgressSelection();
2188 emit doubleClickSelectInvoked(getFrameForX(e->x())); 2188 emit doubleClickSelectInvoked(getFrameForX(e->x()));
2189 return; 2189 return;
2190 } 2190 }
2191 2191
2192 if (mode == ViewManager::NavigateMode || 2192 if (mode == ViewManager::EditMode ||
2193 mode == ViewManager::EditMode) { 2193 (mode == ViewManager::NavigateMode &&
2194 m_manager->getOpportunisticEditingEnabled())) {
2194 2195
2195 Layer *layer = getInteractionLayer(); 2196 Layer *layer = getInteractionLayer();
2196 if (layer && layer->isLayerEditable()) { 2197 if (layer && layer->isLayerEditable()) {
2197 if (layer->editOpen(this, e)) relocate = false; 2198 if (layer->editOpen(this, e)) relocate = false;
2198 } 2199 }