From b75abaad08d8c8a346a76e74425735d4a7f72ada Mon Sep 17 00:00:00 2001 From: Nicolas Roeser Date: Tue, 19 Apr 2022 13:12:13 +0200 Subject: [PATCH] Align generator logic and UI for math symbols In the password generator widget, the checkable push button for the math symbols is missing the GREATER-THAN SIGN (U+003E), even though it is among the possible characters during password generation when the button is checked. Add the missing character to the text displayed to users. While at it, also fix a wrong comment containing the possible characters. --- src/core/PasswordGenerator.cpp | 2 +- src/gui/PasswordGeneratorWidget.ui | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/PasswordGenerator.cpp b/src/core/PasswordGenerator.cpp index 1051dba2b..01641bc80 100644 --- a/src/core/PasswordGenerator.cpp +++ b/src/core/PasswordGenerator.cpp @@ -214,7 +214,7 @@ QVector PasswordGenerator::passwordGroups() const if (m_classes & Math) { PasswordGroup group; - // !*+-<=>? + // !*+<=>? group.append(33); group.append(42); group.append(43); diff --git a/src/gui/PasswordGeneratorWidget.ui b/src/gui/PasswordGeneratorWidget.ui index 2fafaf2ea..19cb0bef3 100644 --- a/src/gui/PasswordGeneratorWidget.ui +++ b/src/gui/PasswordGeneratorWidget.ui @@ -492,7 +492,7 @@ QProgressBar::chunk { Math Symbols - < * + ! ? = + < > * + ! ? = true