Skip to content
Snippets Groups Projects
Commit 505391c0 authored by Kentaro Wada's avatar Kentaro Wada
Browse files

Append to unique label list after edit

parent 22a6a9df
Branches
No related tags found
No related merge requests found
......@@ -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:
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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment