From 0a7585852b0bd5de9b9b3653531ce32517e973b3 Mon Sep 17 00:00:00 2001 From: varjolintu Date: Sun, 16 Jul 2023 14:15:29 +0300 Subject: [PATCH] Fix password dialog close button --- src/gui/PasswordGeneratorWidget.cpp | 4 ++-- src/gui/PasswordGeneratorWidget.h | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/gui/PasswordGeneratorWidget.cpp b/src/gui/PasswordGeneratorWidget.cpp index b41b0c006..5ccd96613 100644 --- a/src/gui/PasswordGeneratorWidget.cpp +++ b/src/gui/PasswordGeneratorWidget.cpp @@ -1,6 +1,6 @@ /* + * Copyright (C) 2023 KeePassXC Team * Copyright (C) 2013 Felix Geyer - * Copyright (C) 2022 KeePassXC Team * * 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 @@ -34,7 +34,7 @@ #include "gui/styles/StateColorPalette.h" PasswordGeneratorWidget::PasswordGeneratorWidget(QWidget* parent) - : QWidget(parent) + : QDialog(parent) , m_passwordGenerator(new PasswordGenerator()) , m_dicewareGenerator(new PassphraseGenerator()) , m_ui(new Ui::PasswordGeneratorWidget()) diff --git a/src/gui/PasswordGeneratorWidget.h b/src/gui/PasswordGeneratorWidget.h index fa18ccd48..9413ebea6 100644 --- a/src/gui/PasswordGeneratorWidget.h +++ b/src/gui/PasswordGeneratorWidget.h @@ -1,6 +1,6 @@ /* + * Copyright (C) 2023 KeePassXC Team * Copyright (C) 2013 Felix Geyer - * Copyright (C) 2022 KeePassXC Team * * 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 @@ -20,6 +20,7 @@ #define KEEPASSX_PASSWORDGENERATORWIDGET_H #include +#include #include #include "core/PassphraseGenerator.h" @@ -34,7 +35,7 @@ class PasswordGenerator; class PasswordHealth; class PassphraseGenerator; -class PasswordGeneratorWidget : public QWidget +class PasswordGeneratorWidget : public QDialog { Q_OBJECT