1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +01:00

PluginProxy: Remove plugin from wheel handlers on unload

Fixes crash when unloading AutoScroll plugin

Closes #1916
This commit is contained in:
David Rosca 2016-04-04 21:14:40 +02:00
parent 7a64e4a0f1
commit 209ba1f44c

View File

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