Merge pull request #76 from water-works/alexgolec-fix-decode-null-input-tooltip

Handle null tooltips in the input plugin view
This commit is contained in:
Milan Nikolic 2016-07-06 09:12:35 +02:00 committed by GitHub
commit 0efcbd72d6

View file

@ -215,7 +215,10 @@ class Input(QDialog, Ui_InputDialog):
def set_opts(self):
for key, val in self.opts.items():
param, tooltip, widget, ptype = val
tooltip = tooltip.decode()
if tooltip:
tooltip = tooltip.decode()
else:
tooltip = ""
if ptype == M64TYPE_BOOL:
if param:
widget.setChecked(param)