Skip to content

Commit 24cdb2d

Browse files
committed
owpaintdata: Add a missing editingStarted.emit in ClearTool.activate
Fixes a 'QUndoStack::endMacro(): no matching beginMacro()' warning from Qt and creates a single Undo command
1 parent 5cf608c commit 24cdb2d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Orange/widgets/data/owpaintdata.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,7 @@ class ClearTool(DataTool):
583583
only2d = False
584584

585585
def activate(self):
586+
self.editingStarted.emit()
586587
self.issueCommand.emit(SelectRegion(self._plot.rect()))
587588
self.issueCommand.emit(DeleteSelection())
588589
self.editingFinished.emit()

0 commit comments

Comments
 (0)