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 4252671095
commit 9a5db24cdf

View file

@ -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;
}