imagebox: Don't emit signals if same image is set again

Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
Uli Schlachter 2015-09-06 13:18:59 +02:00
parent 6b6b448b56
commit ee001ce2f0
1 changed files with 4 additions and 0 deletions

View File

@ -95,6 +95,10 @@ function imagebox:set_image(image)
end
end
if self._image == image then
return
end
self._image = image
self:emit_signal("widget::redraw_needed")