fix tooltip bug

This commit is contained in:
Damien Elmes 2011-04-29 11:40:43 +09:00
parent 247276b223
commit 9490d7e6cf

View file

@ -381,7 +381,11 @@ def tooltip(msg, period=3000):
def closeTooltip():
global _tooltipLabel, _tooltipTimer
if _tooltipLabel:
_tooltipLabel.deleteLater()
try:
_tooltipLabel.deleteLater()
except:
# already deleted as parent window closed
pass
_tooltipLabel = None
if _tooltipTimer:
_tooltipTimer.stop()