mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-12-05 08:12:35 -08:00
Center browser dialog on active screen
This commit is contained in:
1 parent
e053e1d147
commit
5ac1b0c98d
6 files changed
+30
No files matched your search
@@ -21,6 +21,7 @@
|
||||
#include <QUrl>
|
||||
|
||||
#include "core/Entry.h"
|
||||
#include "gui/GuiTools.h"
|
||||
#include "gui/Icons.h"
|
||||
|
||||
BrowserAccessControlDialog::BrowserAccessControlDialog(QWidget* parent)
|
||||
@@ -46,6 +47,12 @@ BrowserAccessControlDialog::~BrowserAccessControlDialog()
|
||||
{
|
||||
}
|
||||
|
||||
void BrowserAccessControlDialog::showEvent(QShowEvent* event)
|
||||
{
|
||||
QDialog::showEvent(event);
|
||||
GuiTools::centerWidgetOnActiveScreen(this);
|
||||
}
|
||||
|
||||
void BrowserAccessControlDialog::setEntries(const QList<Entry*>& entriesToConfirm,
|
||||
const QString& urlString,
|
||||
bool httpAuth)
|
||||
|
||||
Reference in new issue
Block a user