Launch KeePassXC password generator popup from the extension

* Closes #6473
This commit is contained in:
varjolintu authored and Jonathan White committed 2021-10-24 10:24:17 -04:00
1 parent 2a9d92faeb
commit dd41f093e6
8 files changed
+66 -341

No files matched your search

+9 -1
View File
@@ -1,6 +1,6 @@
/*
* Copyright (C) 2013 Felix Geyer <[email protected]>
* Copyright (C) 2020 KeePassXC Team <[email protected]>
* Copyright (C) 2021 KeePassXC Team <[email protected]>
*
* 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);