mirror of
https://github.com/HIllya51/LunaTranslator.git
synced 2024-12-29 00:24:13 +08:00
issues/758
This commit is contained in:
parent
fb52fdd25b
commit
c473f6c602
@ -273,8 +273,12 @@ class autoinitdialog(QDialog):
|
||||
lineW.button(QDialogButtonBox.Ok).setText(_TR("确定"))
|
||||
lineW.button(QDialogButtonBox.Cancel).setText(_TR("取消"))
|
||||
elif line["type"] == "lineedit":
|
||||
lineW = QLineEdit(dd[key])
|
||||
regist.append([dd, key, lineW.text])
|
||||
try:
|
||||
lineW = QLineEdit(dd[key])
|
||||
regist.append([dd, key, lineW.text])
|
||||
except:
|
||||
#被废弃的参数若为int型但失去argstype注释会崩溃,直接continue;
|
||||
continue
|
||||
elif line["type"] == "file":
|
||||
e = QLineEdit(dd[key])
|
||||
regist.append([dd, key, e.text])
|
||||
|
Loading…
x
Reference in New Issue
Block a user