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