1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 01:22:10 +01:00

Fix building password backend plugins

This commit is contained in:
David Rosca 2018-02-06 17:52:28 +01:00
parent 41b6ae21cd
commit 4caab39269
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8
2 changed files with 8 additions and 2 deletions

View File

@ -20,6 +20,9 @@
#include "pluginproxy.h" #include "pluginproxy.h"
#include "browserwindow.h" #include "browserwindow.h"
#include "../config.h" #include "../config.h"
#include "mainapplication.h"
#include "autofill.h"
#include "passwordmanager.h"
#include <QTranslator> #include <QTranslator>
@ -54,7 +57,7 @@ void GnomeKeyringPlugin::init(InitState state, const QString &settingsPath)
void GnomeKeyringPlugin::unload() void GnomeKeyringPlugin::unload()
{ {
QZ_UNREGISTER_PASSWORD_BACKEND(m_backend); mApp->autoFill()->passwordManager()->unregisterBackend(m_backend);
delete m_backend; delete m_backend;
} }

View File

@ -20,6 +20,9 @@
#include "pluginproxy.h" #include "pluginproxy.h"
#include "browserwindow.h" #include "browserwindow.h"
#include "../config.h" #include "../config.h"
#include "mainapplication.h"
#include "autofill.h"
#include "passwordmanager.h"
#include <QTranslator> #include <QTranslator>
@ -54,7 +57,7 @@ void KWalletPlugin::init(InitState state, const QString &settingsPath)
void KWalletPlugin::unload() void KWalletPlugin::unload()
{ {
QZ_UNREGISTER_PASSWORD_BACKEND(m_backend); mApp->autoFill()->passwordManager()->unregisterBackend(m_backend);
delete m_backend; delete m_backend;
} }