Skip to content

Commit

Permalink
Sketcher: fix false selection on dragging element
Browse files Browse the repository at this point in the history
  • Loading branch information
realthunder committed Sep 28, 2024
1 parent d2894ae commit 783d517
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Mod/Sketcher/Gui/TaskSketcherElements.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 783d517

Please sign in to comment.