13
0

Fix range-selection when snapping to sections

Previously a range selection was canceled when the range
exactly matched a section, but the Drag was not canceled.
This lead to various issues.
This commit is contained in:
Robin Gareus 2024-06-17 23:43:18 +02:00
parent e15c337f57
commit 7990454c59
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -264,6 +264,10 @@ EditorSections::selection_changed ()
return;
}
if (PublicEditor::instance ().drag_active ()) {
return;
}
TreeView::Selection::ListHandle_Path rows = _view.get_selection ()->get_selected_rows ();
if (rows.empty ()) {
return;