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:
parent
de74c3f3a2
commit
0a4b6aec5c
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user