mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2026-12-03 15:22:34 -08:00
Fix new password generator closed reply with Browser Integration (#7359)
This commit is contained in:
1 parent
4f0710350f
commit
6791024995
3 files changed
+15
-4
No files matched your search
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* Copyright (C) 2013 Francois Ferrand
|
||||
* Copyright (C) 2017 Sami Vänttinen <[email protected]>
|
||||
* Copyright (C) 2021 KeePassXC Team <[email protected]>
|
||||
* Copyright (C) 2022 KeePassXC Team <[email protected]>
|
||||
*
|
||||
* 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
|
||||
@@ -317,8 +317,11 @@ void BrowserService::showPasswordGenerator(const QJsonObject& errorMessage, cons
|
||||
m_passwordGenerator.reset(PasswordGeneratorWidget::popupGenerator());
|
||||
|
||||
connect(m_passwordGenerator.data(), &PasswordGeneratorWidget::closed, m_passwordGenerator.data(), [=] {
|
||||
if (!m_passwordGenerator->isPasswordGenerated()) {
|
||||
m_browserHost->sendClientMessage(errorMessage);
|
||||
}
|
||||
|
||||
m_passwordGenerator.reset();
|
||||
m_browserHost->sendClientMessage(errorMessage);
|
||||
hideWindow();
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user