mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-09-20 21:04:44 -04:00
Focus database unlock dialog on macOS, fix #1023
This commit is contained in:
parent
ac73e25d88
commit
3b8d49104c
3 changed files with 14 additions and 0 deletions
|
@ -256,6 +256,13 @@ void AutoType::resetInAutoType()
|
||||||
m_inAutoType = false;
|
m_inAutoType = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void AutoType::raiseWindow()
|
||||||
|
{
|
||||||
|
#if defined(Q_OS_MAC)
|
||||||
|
m_plugin->raiseOwnWindow();
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
void AutoType::unloadPlugin()
|
void AutoType::unloadPlugin()
|
||||||
{
|
{
|
||||||
if (m_executor) {
|
if (m_executor) {
|
||||||
|
|
|
@ -51,6 +51,7 @@ public:
|
||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void performGlobalAutoType(const QList<Database*>& dbList);
|
void performGlobalAutoType(const QList<Database*>& dbList);
|
||||||
|
void raiseWindow();
|
||||||
|
|
||||||
signals:
|
signals:
|
||||||
void globalShortcutTriggered();
|
void globalShortcutTriggered();
|
||||||
|
|
|
@ -1400,6 +1400,12 @@ void DatabaseWidget::showUnlockDialog()
|
||||||
{
|
{
|
||||||
m_unlockDatabaseDialog->clearForms();
|
m_unlockDatabaseDialog->clearForms();
|
||||||
m_unlockDatabaseDialog->setDBFilename(m_filename);
|
m_unlockDatabaseDialog->setDBFilename(m_filename);
|
||||||
|
|
||||||
|
#if defined(Q_OS_MAC)
|
||||||
|
autoType()->raiseWindow();
|
||||||
|
Tools::wait(500);
|
||||||
|
#endif
|
||||||
|
|
||||||
m_unlockDatabaseDialog->show();
|
m_unlockDatabaseDialog->show();
|
||||||
m_unlockDatabaseDialog->activateWindow();
|
m_unlockDatabaseDialog->activateWindow();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue