don't stopMousePolling when not started

REVIEW: 108536
BUG: 313655
This commit is contained in:
Thomas Lübking 2013-01-22 00:29:55 +01:00
parent d9a7b6023d
commit 5d0e383924

View file

@ -68,7 +68,8 @@ MouseClickEffect::~MouseClickEffect()
if (!s_XrBuffer.isNull()) if (!s_XrBuffer.isNull())
XFreePixmap(display(), s_XrBuffer.handle()); XFreePixmap(display(), s_XrBuffer.handle());
#endif #endif
effects->stopMousePolling(); if (m_enabled)
effects->stopMousePolling();
foreach (const MouseEvent* click, m_clicks) { foreach (const MouseEvent* click, m_clicks) {
delete click; delete click;
} }