Launch KeePassXC password generator popup from the extension
* Closes #6473
This commit is contained in:
committed by
Jonathan White
parent
2a9d92faeb
commit
dd41f093e6
@@ -1,6 +1,6 @@
|
||||
/*
|
||||
* Copyright (C) 2013 Felix Geyer <debfx@fobos.de>
|
||||
* Copyright (C) 2020 KeePassXC Team <team@keepassxc.org>
|
||||
* Copyright (C) 2021 KeePassXC Team <team@keepassxc.org>
|
||||
*
|
||||
* 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
|
||||
@@ -19,6 +19,7 @@
|
||||
#include "PasswordGeneratorWidget.h"
|
||||
#include "ui_PasswordGeneratorWidget.h"
|
||||
|
||||
#include <QCloseEvent>
|
||||
#include <QDir>
|
||||
#include <QShortcut>
|
||||
#include <QTimer>
|
||||
@@ -109,6 +110,13 @@ PasswordGeneratorWidget::~PasswordGeneratorWidget()
|
||||
{
|
||||
}
|
||||
|
||||
void PasswordGeneratorWidget::closeEvent(QCloseEvent* event)
|
||||
{
|
||||
// Emits closed signal when clicking X from title bar
|
||||
emit closed();
|
||||
event->accept();
|
||||
}
|
||||
|
||||
PasswordGeneratorWidget* PasswordGeneratorWidget::popupGenerator(QWidget* parent)
|
||||
{
|
||||
auto pwGenerator = new PasswordGeneratorWidget(parent);
|
||||
|
||||
Reference in New Issue
Block a user