From 783d517a1cc44ca5921adcc9a687770bfb2ad72c Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Sat, 28 Sep 2024 11:35:15 +0800 Subject: [PATCH] Sketcher: fix false selection on dragging element --- src/Mod/Sketcher/Gui/TaskSketcherElements.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Mod/Sketcher/Gui/TaskSketcherElements.cpp b/src/Mod/Sketcher/Gui/TaskSketcherElements.cpp index dcd525bfac1f..59b73660f4ee 100644 --- a/src/Mod/Sketcher/Gui/TaskSketcherElements.cpp +++ b/src/Mod/Sketcher/Gui/TaskSketcherElements.cpp @@ -784,7 +784,7 @@ void TaskSketcherElements::slotElementsChanged(void) int currentRow = -1; auto currentIndex = ui->elementsWidget->currentIndex(); - if (currentIndex.isValid()) + if (currentIndex.isValid() && ui->elementsWidget->currentItem()->isSelected()) currentRow = currentIndex.row(); ui->elementsWidget->blockSignals(true);