diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-19 16:35:40 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-19 16:36:19 +0100 |
commit | 98019536daeac4c136ce9b327545a27da6dbb2e0 (patch) | |
tree | bae37b8e6fcb5852002f10f65fa3ee632b483c45 /cui | |
parent | c5e114c00cccb1b98dac7cb96de21e4ba53647c2 (diff) |
Resolves: fdo#58170 use selected tab page helpid as final fallback
Change-Id: I73a064a40476f685dbf19097115bd48c5cc0f578
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/options/treeopt.cxx | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/cui/source/options/treeopt.cxx b/cui/source/options/treeopt.cxx index 14dcccb8704d..289903772c78 100644 --- a/cui/source/options/treeopt.cxx +++ b/cui/source/options/treeopt.cxx @@ -1189,6 +1189,17 @@ void OfaTreeOptionsDialog::SelectHdl_Impl() // then set the focus to the new page or if we are on a group set the focus to the options treebox pNewPage ? pNewPage->GrabFocus() : pBox->GrabFocus(); + //fdo#58170 use current page's layout child HelpId, unless there isn't a + //current page + OUString sHelpId(HID_OFADLG_TREELISTBOX); + if (::isLayoutEnabled(pNewPage)) + { + Window *pFirstChild = pNewPage->GetWindow(WINDOW_FIRSTCHILD); + assert(pFirstChild); + sHelpId = pFirstChild->GetHelpId(); + } + pBox->SetHelpId(sHelpId); + return; } |