提交 8b213e50 编写于 作者: K Kentaro Wada

Fix addLabelHistory

上级 816365d4
......@@ -528,6 +528,7 @@ class MainWindow(QMainWindow, WindowMixin):
item.setCheckState(Qt.Checked)
self.itemsToShapes.append((item, shape))
self.labelList.addItem(item)
self.labelDialog.addLabelHistory(item.text())
for action in self.actions.onShapesPresent:
action.setEnabled(True)
......@@ -612,7 +613,6 @@ class MainWindow(QMainWindow, WindowMixin):
text = self.labelDialog.popUp()
if text is not None:
self.addLabel(self.canvas.setLastLabel(text))
self.labelDialog.addLabelHistory(text)
if self.beginner(): # Switch to edit mode.
self.canvas.setEditing(True)
self.actions.create.setEnabled(True)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册