tUse leaveEvent instead of checking mouseMove position constantly. - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 39d6b739dd9654ca21ec977a1dec487ec2c46f23 DIR parent e7e0b80ca8a606ce6443195042dc4a55f1eb3389 HTML Author: Amir Taaki <genjix@riseup.net> Date: Thu, 5 Jul 2012 18:08:14 +0200 Use leaveEvent instead of checking mouseMove position constantly. Diffstat: M lib/gui_lite.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) --- DIR diff --git a/lib/gui_lite.py b/lib/gui_lite.py t@@ -402,9 +402,8 @@ class PasswordDialog(QDialog): class ReceivePopup(QDialog): - def mouseMoveEvent(self, event): - if not self.rect().contains(event.pos()): - self.close() + def leaveEvent(self, event): + self.close() def setup(self, address): label = QLabel(_("Copied your Bitcoin address to the clipboard!"))