1
0
mirror of https://github.com/clementine-player/Clementine synced 2025-01-18 20:40:43 +01:00

Fix a crash on exit when gnome accessibility bits are enabled.

This commit is contained in:
David Sansome 2012-07-17 18:18:59 +01:00
parent de74c3f3a2
commit 0a4b6aec5c

View File

@ -32,7 +32,8 @@ ForceScrollPerPixel::ForceScrollPerPixel(QAbstractItemView* item_view, QObject*
bool ForceScrollPerPixel::eventFilter(QObject* object, QEvent* event) {
if (object == item_view_ &&
event->type() != QEvent::Destroy &&
event->type() != QEvent::WinIdChange) {
event->type() != QEvent::WinIdChange &&
event->type() != QEvent::AccessibilityPrepare) {
item_view_->setVerticalScrollMode(QAbstractItemView::ScrollPerPixel);
item_view_->verticalScrollBar()->setSingleStep(20);
}