The item editor now selects save on enter key, and highlights name when dialog is opened.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user