naughty: fix a bug on timeout when popup was destroyed by hover_timeout

Signed-off-by: koniu <gkusnierz@gmail.com>
This commit is contained in:
koniu 2008-11-22 17:49:27 +00:00 committed by Julien Danjou
parent 2d321ffbf8
commit 61947ec1c8
1 changed files with 1 additions and 1 deletions

View File

@ -152,7 +152,7 @@ end
-- @param notification Notification object to be destroyed
-- @return True if the popup was successfully destroyed, nil otherwise
function destroy(notification)
if notification then
if notification and notification.box.screen then
local scr = notification.box.screen
table.remove(notifications[notification.box.screen][notification.position], notification.idx)
hooks.timer.unregister(notification.die)