diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2020-06-29 16:54:31 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2020-07-01 19:38:59 +0200 |
commit | fd94276fbbd3632b2241133900b995d75f9b14fc (patch) | |
tree | 741acb4a8bb45bd0facc0d41281b0cda932eded4 /framework | |
parent | tdf#130151 Fix toc pointing to wrong page (diff) | |
download | core-fd94276fbbd3632b2241133900b995d75f9b14fc.tar.gz core-fd94276fbbd3632b2241133900b995d75f9b14fc.zip |
configure: add a --with-product-flavor switch
Defaults to Personal to point out this is supported by volunteers.
This affects the splash screen, the window title, the about dialog and
the start center.
(cherry picked from commit c540483134482d437ea6e02390ff429f4300cbb0)
Change-Id: I216a7f547618377ed268454ebfd2801c4c3901b7
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97638
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'framework')
-rw-r--r-- | framework/source/fwe/helper/titlehelper.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/framework/source/fwe/helper/titlehelper.cxx b/framework/source/fwe/helper/titlehelper.cxx index fba89ae42bfc..d02287da16b4 100644 --- a/framework/source/fwe/helper/titlehelper.cxx +++ b/framework/source/fwe/helper/titlehelper.cxx @@ -17,6 +17,7 @@ * the License at http://www.apache.org/licenses/LICENSE-2.0 . */ +#include <config_buildid.h> #include <config_features.h> #include <framework/titlehelper.hxx> @@ -516,6 +517,12 @@ void TitleHelper::impl_updateTitleForFrame (const css::uno::Reference< css::fram // fdo#70376: We want the window title to contain just the // document name (from the above "component title"). impl_appendProductName (sTitle); + + if (!std::string_view(PRODUCTFLAVOR).empty()) + { + sTitle.append(" " PRODUCTFLAVOR); + } + impl_appendModuleName (sTitle); impl_appendDebugVersion (sTitle); #endif |