Set lineEdit focus when displaying form

This commit is contained in:
phill-ridout 2013-02-05 19:57:08 +00:00
parent e03411422f
commit 6e17ff9d9e

View File

@ -56,4 +56,5 @@ class FileRenameForm(QtGui.QDialog, Ui_FileRenameDialog):
self.setWindowTitle(translate('OpenLP.FileRenameForm', 'File Copy')) self.setWindowTitle(translate('OpenLP.FileRenameForm', 'File Copy'))
else: else:
self.setWindowTitle(translate('OpenLP.FileRenameForm', 'File Rename')) self.setWindowTitle(translate('OpenLP.FileRenameForm', 'File Rename'))
self.fileNameEdit.setFocus()
return QtGui.QDialog.exec_(self) return QtGui.QDialog.exec_(self)