mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-06-29 17:07:32 -04:00
The Database Open Dialog should use the window flag QT::Dialog
Currently the Open Dialog does not behave like a dialog. In Unix it means that the EWHM hints are not set correctly therefore the window manager doesn't properly set the floating window style. It should also allow removing Mac/Windows/Unix custom conditional code.
This commit is contained in:
parent
7858430631
commit
aedc45abd5
1 changed files with 1 additions and 5 deletions
|
@ -25,11 +25,7 @@ DatabaseOpenDialog::DatabaseOpenDialog(QWidget* parent)
|
||||||
, m_view(new DatabaseOpenWidget(this))
|
, m_view(new DatabaseOpenWidget(this))
|
||||||
{
|
{
|
||||||
setWindowTitle(tr("Unlock Database - KeePassXC"));
|
setWindowTitle(tr("Unlock Database - KeePassXC"));
|
||||||
#ifdef Q_OS_MACOS
|
setWindowFlags(Qt::Dialog | Qt::WindowStaysOnTopHint);
|
||||||
setWindowFlags(windowFlags() | Qt::WindowStaysOnTopHint);
|
|
||||||
#else
|
|
||||||
setWindowFlags(windowFlags() | Qt::WindowStaysOnTopHint | Qt::ForeignWindow);
|
|
||||||
#endif
|
|
||||||
connect(m_view, SIGNAL(dialogFinished(bool)), this, SLOT(complete(bool)));
|
connect(m_view, SIGNAL(dialogFinished(bool)), this, SLOT(complete(bool)));
|
||||||
auto* layout = new QVBoxLayout();
|
auto* layout = new QVBoxLayout();
|
||||||
layout->setMargin(0);
|
layout->setMargin(0);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue