The item editor now selects save on enter key, and highlights name when dialog is opened.

This commit is contained in:
Veronica K. B. Olsen
2019-05-03 22:45:16 +02:00
parent 7092e20e9c
commit 5ae6066eb4
+3
View File
@@ -95,6 +95,7 @@ class GuiItemEditor(QDialog):
self.closeButton = QPushButton("Close")
self.closeButton.clicked.connect(self._doClose)
self.saveButton = QPushButton("Save")
self.saveButton.setDefault(True)
self.saveButton.clicked.connect(self._doSave)
self.buttonBox.addStretch(1)
self.buttonBox.addWidget(self.closeButton)
@@ -106,6 +107,8 @@ class GuiItemEditor(QDialog):
self.show()
self.editName.selectAll()
logger.debug("ItemEditor initialisation complete")
return