From 9490d7e6cfb9389ff183d28a3fd51a16f1e555f0 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Fri, 29 Apr 2011 11:40:43 +0900 Subject: [PATCH] fix tooltip bug --- aqt/utils.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/aqt/utils.py b/aqt/utils.py index 51f663b63..342d2e918 100644 --- a/aqt/utils.py +++ b/aqt/utils.py @@ -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()