Make the auto-replace list in project settings sorted

This commit is contained in:
Veronica K. B. Olsen
2019-08-11 19:42:42 +02:00
parent b58994848a
commit 8278bcec9e
2 changed files with 5 additions and 1 deletions
+3
View File
@@ -336,6 +336,9 @@ class GuiProjectEditReplace(QWidget):
newItem = QTreeWidgetItem(["<%s>" % aKey, aVal])
self.listBox.addTopLevelItem(newItem)
self.listBox.sortByColumn(0, Qt.AscendingOrder)
self.listBox.setSortingEnabled(True)
self.editKey = QLineEdit()
self.editValue = QLineEdit()
self.saveButton = QPushButton(QIcon.fromTheme("document-save"),"")