From 46480cd3848cfca87a8ab7e1bd93bb6fb68d6ab9 Mon Sep 17 00:00:00 2001 From: Alexander Golec Date: Tue, 5 Jul 2016 23:43:06 -0400 Subject: [PATCH] Handle null tooltips in the input plugin view --- src/m64py/frontend/input.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/m64py/frontend/input.py b/src/m64py/frontend/input.py index 25877f2..60b55c2 100644 --- a/src/m64py/frontend/input.py +++ b/src/m64py/frontend/input.py @@ -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)