tdf#165487 Always select a tab page by default

Change-Id: Iba56e9a519d45e1e1962bfdaaccc8f062d001286
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182340
Tested-by: Jenkins
Reviewed-by: Samuel Mehrbrodt <samuel.mehrbrodt@allotropia.de>
This commit is contained in:
Samuel Mehrbrodt
2025-02-28 23:02:01 +01:00
parent e8c44d23c7
commit a91494780b
+1 -1
View File
@@ -46,7 +46,7 @@ SfxStyleDialogController::SfxStyleDialogController
AddTabPage(u"organizer"_ustr, SfxManageStyleSheetPage::Create, nullptr);
// With new template always set the management page as the current page
if (rStyle.GetName().isEmpty())
if (rStyle.GetName().isEmpty() || GetCurPageId().isEmpty())
SetCurPageId(u"organizer"_ustr);
else
{