1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10:46:35 +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 "browserwindow.h"
#include "../config.h"
#include "mainapplication.h"
#include "autofill.h"
#include "passwordmanager.h"
#include <QTranslator>
@ -54,7 +57,7 @@ void GnomeKeyringPlugin::init(InitState state, const QString &settingsPath)
void GnomeKeyringPlugin::unload()
{
QZ_UNREGISTER_PASSWORD_BACKEND(m_backend);
mApp->autoFill()->passwordManager()->unregisterBackend(m_backend);
delete m_backend;
}

View File

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