Prechádzať zdrojové kódy

feat: set yes button as default in delete warning box

Akshar Patel 5 rokov pred
rodič
commit
0c0ab87d5b
1 zmenil súbory, kde vykonal 1 pridanie a 1 odobranie
  1. 1 1
      labelme/app.py

+ 1 - 1
labelme/app.py

@@ -1658,7 +1658,7 @@ class MainWindow(QtWidgets.QMainWindow):
         ).format(len(self.canvas.selectedShapes))
         if yes == QtWidgets.QMessageBox.warning(
                 self, self.tr('Attention'), msg,
-                yes | no):
+                yes | no, yes):
             self.remLabels(self.canvas.deleteSelected())
             self.setDirty()
             if self.noShapes():