aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 318131110..500373a8a 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -4919,10 +4919,8 @@ void Editor::ButtonDownWithModifiers(Point pt, unsigned int curTime, KeyMod modi
// Switch to just the click position
SetSelection(newPos, newPos);
}
- if (!sel.Range(selectionPart).Empty()) {
- if (dragDropEnabled) {
- inDragDrop = DragDrop::initial;
- }
+ if (dragDropEnabled && !sel.Range(selectionPart).Empty()) {
+ inDragDrop = DragDrop::initial;
}
}
}