Center browser dialog on active screen

This commit is contained in:
Jonathan White committed 2026-09-16 18:04:55 -04:00
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)