sfx2/source/dialog/styledlg.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 4beead7a68d85ba8be73ed2e60a122af23d28d80 Author: Samuel Mehrbrodt <samuel.mehrbr...@allotropia.de> AuthorDate: Thu Feb 27 22:24:03 2025 +0100 Commit: Adolfo Jayme Barrientos <fit...@ubuntu.com> CommitDate: Sat Mar 1 06:33:42 2025 +0100 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.mehrbr...@allotropia.de> (cherry picked from commit a91494780bb59afe8c971003e6b809f1e66df050) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/182374 Reviewed-by: Adolfo Jayme Barrientos <fit...@ubuntu.com> diff --git a/sfx2/source/dialog/styledlg.cxx b/sfx2/source/dialog/styledlg.cxx index 9e5abc01aa73..c4bab0881d54 100644 --- a/sfx2/source/dialog/styledlg.cxx +++ b/sfx2/source/dialog/styledlg.cxx @@ -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 {