From 5f63f9f23f10640b613cd894ed529eaf69a04aec Mon Sep 17 00:00:00 2001 From: Victor Fragoso Date: Thu, 5 Jul 2018 21:33:51 -0300 Subject: [PATCH] Add comment to clarify why replace() is used by The WikiLab Team (wikilab.blog.br) --- src/Gui/Splashscreen.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Gui/Splashscreen.cpp b/src/Gui/Splashscreen.cpp index d793c51cf6..0f4b9002ba 100644 --- a/src/Gui/Splashscreen.cpp +++ b/src/Gui/Splashscreen.cpp @@ -461,6 +461,9 @@ void AboutDialog::setupLabels() QString disda = QString::fromLatin1(config["BuildRevisionDate"].c_str()); QString mturl = QString::fromLatin1(config["MaintainerUrl"].c_str()); + // we use replace() to keep label formating, so a label with text "Unknown" + // gets replaced to "FreeCAD", for example + QString author = ui->labelAuthor->text(); author.replace(QString::fromLatin1("Unknown Application"), exeName); author.replace(QString::fromLatin1("(c) Unknown Author"), banner);