diff options
author | Andreas Heinisch <andreas.heinisch@yahoo.de> | 2023-05-03 17:01:10 +0200 |
---|---|---|
committer | Andreas Heinisch <andreas.heinisch@yahoo.de> | 2023-05-03 18:50:33 +0200 |
commit | ebfd2f10b400ad215ccd2263267f48a79b1427ef (patch) | |
tree | 73b7ea6fc9e1c09239289b47ab2782091d6a45f3 /cui/source/dialogs/cuihyperdlg.cxx | |
parent | a0dd4cd98504124362524727c5f9eae731c1944f (diff) |
tdf#90496 - Remember last used view in hyperlink dialog
Changed remembered last used view in hyperlink dialog from user
configuration to session.
Change-Id: Ifd04fc92d8ca8880d85c6cb52a7e364cff54a82e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/151331
Tested-by: Jenkins
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Diffstat (limited to 'cui/source/dialogs/cuihyperdlg.cxx')
-rw-r--r-- | cui/source/dialogs/cuihyperdlg.cxx | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/cui/source/dialogs/cuihyperdlg.cxx b/cui/source/dialogs/cuihyperdlg.cxx index 782877d438f7..86fd3c1a2c8f 100644 --- a/cui/source/dialogs/cuihyperdlg.cxx +++ b/cui/source/dialogs/cuihyperdlg.cxx @@ -79,6 +79,9 @@ void SvxHlinkCtrl::StateChangedAtToolBoxControl( sal_uInt16 nSID, SfxItemState e } } +// tdf#90496 - remember last used view in hyperlink dialog +OUString SvxHpLinkDlg::msRememberedPageId("internet"); + //# # //# Hyperlink - Dialog # //# # @@ -135,15 +138,7 @@ SvxHpLinkDlg::SvxHpLinkDlg(SfxBindings* pBindings, SfxChildWindow* pChild, weld: } // tdf#90496 - remember last used view in hyperlink dialog - OUString sPageId("internet"); - SvtViewOptions aViewOpt(EViewType::TabDialog, m_xDialog->get_accessible_name()); - if (aViewOpt.Exists()) - { - const OUString sSavedPageId = aViewOpt.GetPageID(); - if (GetPageData(sSavedPageId)) - sPageId = sSavedPageId; - } - SetCurPageId(sPageId); + SetCurPageId(msRememberedPageId); // Init Dialog Start(); |