mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-05 05:27:39 +03:00
Cleanup compiler warnings on all platforms (#10847)
Fixes #10730. Co-authored-by: Christoph Reiter <reiter.christoph@gmail.com>
This commit is contained in:
parent
af3b4074e2
commit
c3df16147d
5 changed files with 18 additions and 15 deletions
|
@ -515,20 +515,23 @@ void BrowserService::showPasswordGenerator(const KeyPairMessage& keyPairMessage)
|
|||
if (!m_passwordGenerator) {
|
||||
m_passwordGenerator = PasswordGeneratorWidget::popupGenerator();
|
||||
|
||||
connect(m_passwordGenerator.data(), &PasswordGeneratorWidget::closed, m_passwordGenerator.data(), [=] {
|
||||
if (!m_passwordGenerator->isPasswordGenerated()) {
|
||||
auto errorMessage = browserMessageBuilder()->getErrorReply("generate-password",
|
||||
ERROR_KEEPASS_ACTION_CANCELLED_OR_DENIED);
|
||||
m_browserHost->sendClientMessage(keyPairMessage.socket, errorMessage);
|
||||
}
|
||||
connect(m_passwordGenerator.data(),
|
||||
&PasswordGeneratorWidget::closed,
|
||||
m_passwordGenerator.data(),
|
||||
[this, keyPairMessage] {
|
||||
if (!m_passwordGenerator->isPasswordGenerated()) {
|
||||
auto errorMessage = browserMessageBuilder()->getErrorReply(
|
||||
"generate-password", ERROR_KEEPASS_ACTION_CANCELLED_OR_DENIED);
|
||||
m_browserHost->sendClientMessage(keyPairMessage.socket, errorMessage);
|
||||
}
|
||||
|
||||
QTimer::singleShot(50, this, [&] { hideWindow(); });
|
||||
});
|
||||
QTimer::singleShot(50, this, [&] { hideWindow(); });
|
||||
});
|
||||
|
||||
connect(m_passwordGenerator.data(),
|
||||
&PasswordGeneratorWidget::appliedPassword,
|
||||
m_passwordGenerator.data(),
|
||||
[=](const QString& password) {
|
||||
[this, keyPairMessage](const QString& password) {
|
||||
const Parameters params{{"password", password}};
|
||||
m_browserHost->sendClientMessage(keyPairMessage.socket,
|
||||
browserMessageBuilder()->buildResponse("generate-password",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue