浏览代码

Disallow label editing when in draw mode

This can prove confusing however.
Michael Pitidis 13 年之前
父节点
当前提交
0b9d851481
共有 1 个文件被更改,包括 2 次插入0 次删除
  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: