diff --git a/src/gui/entry/EditEntryWidget.cpp b/src/gui/entry/EditEntryWidget.cpp index 5da6e6605..66e69527b 100644 --- a/src/gui/entry/EditEntryWidget.cpp +++ b/src/gui/entry/EditEntryWidget.cpp @@ -994,7 +994,9 @@ bool EditEntryWidget::hasBeenModified() const void EditEntryWidget::togglePasswordGeneratorButton(bool checked) { - m_mainUi->passwordGenerator->regeneratePassword(); + if (checked) { + m_mainUi->passwordGenerator->regeneratePassword(); + } m_mainUi->passwordGenerator->setVisible(checked); }