Explorar el Código

Disallow label editing when in draw mode

This can prove confusing however.
Michael Pitidis hace 13 años
padre
commit
0b9d851481
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  1. 2 0
      labelme.py

+ 2 - 0
labelme.py

@@ -355,6 +355,8 @@ class MainWindow(QMainWindow, WindowMixin):
         self.menus.labelList.exec_(self.labelList.mapToGlobal(point))
 
     def editLabel(self, item=None):
+        if self.canvas.editing():
+            return
         item = item if item else self.currentItem()
         text = self.simpleLabelDialog.popUp(item.text())
         if text is not None: