From 2138189f8e1b0766a085dfa255c5533f7e7cc801 Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Mon, 14 Mar 2022 18:31:03 +0800 Subject: [PATCH] Gui: do not remove ending puncuation when clean action title --- src/Gui/Action.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Gui/Action.cpp b/src/Gui/Action.cpp index 262ca3ec80..a808d3b886 100644 --- a/src/Gui/Action.cpp +++ b/src/Gui/Action.cpp @@ -222,9 +222,13 @@ QString Action::cleanTitle(const QString & text) // Deal with QAction title mnemonic static QRegularExpression re(QStringLiteral("&(.)")); title.replace(re, QStringLiteral("\\1")); + + // Probably not a good idea to trim ending punctuation +#if 0 // Trim line ending punctuation static QRegularExpression rePunct(QStringLiteral("[[:punct:]]+$")); title.replace(rePunct, QString()); +#endif return title; }