提交 81d5a401 编写于 作者: K Kentaro Wada

Append to unique label list after edit

上级 fdb18b9b
......@@ -547,9 +547,13 @@ class MainWindow(QMainWindow, WindowMixin):
return
item = item if item else self.currentItem()
text = self.labelDialog.popUp(item.text())
if text is not None:
item.setText(text)
self.setDirty()
if text is None:
return
item.setText(text)
self.setDirty()
if not self.uniqLabelList.findItems(text, Qt.MatchExactly):
self.uniqLabelList.addItem(text)
self.uniqLabelList.sortItems()
def fileSelectionChanged(self):
items = self.fileListWidget.selectedItems()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册