issues/758

This commit is contained in:
恍兮惚兮 2024-05-21 19:53:58 +08:00
parent fb52fdd25b
commit c473f6c602

View File

@ -273,8 +273,12 @@ class autoinitdialog(QDialog):
lineW.button(QDialogButtonBox.Ok).setText(_TR("确定")) lineW.button(QDialogButtonBox.Ok).setText(_TR("确定"))
lineW.button(QDialogButtonBox.Cancel).setText(_TR("取消")) lineW.button(QDialogButtonBox.Cancel).setText(_TR("取消"))
elif line["type"] == "lineedit": elif line["type"] == "lineedit":
lineW = QLineEdit(dd[key]) try:
regist.append([dd, key, lineW.text]) lineW = QLineEdit(dd[key])
regist.append([dd, key, lineW.text])
except:
#被废弃的参数若为int型但失去argstype注释会崩溃直接continue;
continue
elif line["type"] == "file": elif line["type"] == "file":
e = QLineEdit(dd[key]) e = QLineEdit(dd[key])
regist.append([dd, key, e.text]) regist.append([dd, key, e.text])