mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
PluginProxy: Remove plugin from wheel handlers on unload
Fixes crash when unloading AutoScroll plugin Closes #1916
This commit is contained in:
parent
7a64e4a0f1
commit
209ba1f44c
|
@ -1,6 +1,6 @@
|
||||||
/* ============================================================
|
/* ============================================================
|
||||||
* QupZilla - WebKit based browser
|
* QupZilla - WebKit based browser
|
||||||
* Copyright (C) 2010-2014 David Rosca <nowrep@gmail.com>
|
* Copyright (C) 2010-2016 David Rosca <nowrep@gmail.com>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU General Public License as published by
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
@ -84,6 +84,7 @@ void PluginProxy::pluginUnloaded(PluginInterface* plugin)
|
||||||
m_mousePressHandlers.removeOne(plugin);
|
m_mousePressHandlers.removeOne(plugin);
|
||||||
m_mouseReleaseHandlers.removeOne(plugin);
|
m_mouseReleaseHandlers.removeOne(plugin);
|
||||||
m_mouseMoveHandlers.removeOne(plugin);
|
m_mouseMoveHandlers.removeOne(plugin);
|
||||||
|
m_wheelEventHandlers.removeOne(plugin);
|
||||||
|
|
||||||
m_keyPressHandlers.removeOne(plugin);
|
m_keyPressHandlers.removeOne(plugin);
|
||||||
m_keyReleaseHandlers.removeOne(plugin);
|
m_keyReleaseHandlers.removeOne(plugin);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user