Remove confirmation when deleting a ROI

This commit is contained in:
Thibaut Mattio 2017-02-28 13:29:38 +08:00
parent 77d5fae05f
commit 1f01cf9074

View File

@ -1101,9 +1101,6 @@ class MainWindow(QMainWindow, WindowMixin):
self.setDirty() self.setDirty()
def deleteSelectedShape(self): 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.remLabel(self.canvas.deleteSelected())
self.setDirty() self.setDirty()
if self.noShapes(): if self.noShapes():