From aa97bd52138329b06f08f34243dbfb8d183cb6f8 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 1051dba2..01641bc8 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 547c5a0a..9330a983 100644 --- a/src/gui/PasswordGeneratorWidget.ui +++ b/src/gui/PasswordGeneratorWidget.ui @@ -492,7 +492,7 @@ QProgressBar::chunk { Math Symbols - < * + ! ? = + < > * + ! ? = true