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"),"")
+2 -1
View File
@@ -1,5 +1,5 @@
<?xml version='1.0' encoding='utf-8'?>
<novelWriterXML appVersion="0.2.0" fileVersion="1.0" timeStamp="2019-06-28 12:43:41">
<novelWriterXML appVersion="0.2.0" fileVersion="1.0" timeStamp="2019-08-11 19:41:35">
<project>
<name>Sample Project</name>
<title>Sample Project</title>
@@ -14,6 +14,7 @@
<lastWordCount>581</lastWordCount>
<autoReplace>
<A>B</A>
<B>E</B>
<C>D</C>
</autoReplace>
<status>