From 9a5db24cdf9f47f6a00716346e40a3b0f2ec6b68 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thomas=20L=C3=BCbking?= Date: Tue, 22 Jan 2013 00:29:55 +0100 Subject: [PATCH] don't stopMousePolling when not started REVIEW: 108536 BUG: 313655 --- effects/mouseclick/mouseclick.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/effects/mouseclick/mouseclick.cpp b/effects/mouseclick/mouseclick.cpp index 0b76074a6d..7f13a2045d 100644 --- a/effects/mouseclick/mouseclick.cpp +++ b/effects/mouseclick/mouseclick.cpp @@ -68,7 +68,8 @@ MouseClickEffect::~MouseClickEffect() if (!s_XrBuffer.isNull()) XFreePixmap(display(), s_XrBuffer.handle()); #endif - effects->stopMousePolling(); + if (m_enabled) + effects->stopMousePolling(); foreach (const MouseEvent* click, m_clicks) { delete click; }