Remove confirmation when deleting a ROI
This commit is contained in:
parent
77d5fae05f
commit
1f01cf9074
13
labelImg.py
13
labelImg.py
@ -1101,14 +1101,11 @@ class MainWindow(QMainWindow, WindowMixin):
|
||||
self.setDirty()
|
||||
|
||||
def deleteSelectedShape(self):
|
||||
yes, no = QMessageBox.Yes, QMessageBox.No
|
||||
msg = u'You are about to permanently delete this Box, proceed anyway?'
|
||||
if yes == QMessageBox.warning(self, u'Attention', msg, yes | no):
|
||||
self.remLabel(self.canvas.deleteSelected())
|
||||
self.setDirty()
|
||||
if self.noShapes():
|
||||
for action in self.actions.onShapesPresent:
|
||||
action.setEnabled(False)
|
||||
self.remLabel(self.canvas.deleteSelected())
|
||||
self.setDirty()
|
||||
if self.noShapes():
|
||||
for action in self.actions.onShapesPresent:
|
||||
action.setEnabled(False)
|
||||
|
||||
def chshapeLineColor(self):
|
||||
color = self.colorDialog.getColor(self.lineColor, u'Choose line color',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user