fix for NoneType crash

This commit is contained in:
Daniel Pavel 2013-07-02 19:43:18 +02:00
parent 833f087fdf
commit a0f880fbba
1 changed files with 1 additions and 1 deletions

View File

@ -592,7 +592,7 @@ def _update_device_panel(device, panel, buttons, full=False):
else:
panel._secure._text.set_markup('<small>offline</small>')
panel._secure._icon.set_visible(False)
panel._secure.set_tooltip_text(None)
panel._secure.set_tooltip_text('')
if is_online:
light_level = device.status.get(_K.LIGHT_LEVEL)