mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 10:46:35 +01:00
PluginProxy: Set MainApplication as parent
This commit is contained in:
parent
f7e64e2353
commit
fd759ded62
@ -308,7 +308,7 @@ MainApplication::MainApplication(int &argc, char** argv)
|
||||
translateApp();
|
||||
loadSettings();
|
||||
|
||||
m_plugins = new PluginProxy;
|
||||
m_plugins = new PluginProxy(this);
|
||||
m_autoFill = new AutoFill(this);
|
||||
|
||||
if (!noAddons)
|
||||
@ -355,8 +355,9 @@ MainApplication::~MainApplication()
|
||||
|
||||
// Delete all classes that are saving data in destructor
|
||||
delete m_bookmarks;
|
||||
m_bookmarks = nullptr;
|
||||
delete m_cookieJar;
|
||||
delete m_plugins;
|
||||
m_cookieJar = nullptr;
|
||||
|
||||
Settings::syncSettings();
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
/* ============================================================
|
||||
* Falkon - Qt web browser
|
||||
* Copyright (C) 2010-2016 David Rosca <nowrep@gmail.com>
|
||||
* Copyright (C) 2010-2018 David Rosca <nowrep@gmail.com>
|
||||
*
|
||||
* 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
|
||||
@ -22,8 +22,8 @@
|
||||
|
||||
#include <QMenu>
|
||||
|
||||
PluginProxy::PluginProxy()
|
||||
: Plugins()
|
||||
PluginProxy::PluginProxy(QObject *parent)
|
||||
: Plugins(parent)
|
||||
{
|
||||
connect(this, SIGNAL(pluginUnloaded(PluginInterface*)), this, SLOT(pluginUnloaded(PluginInterface*)));
|
||||
}
|
||||
|
@ -35,7 +35,7 @@ public:
|
||||
WheelEventHandler
|
||||
};
|
||||
|
||||
explicit PluginProxy();
|
||||
explicit PluginProxy(QObject *parent = nullptr);
|
||||
|
||||
void registerAppEventHandler(const EventHandlerType &type, PluginInterface* obj);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user