summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-05-19 16:35:40 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-05-19 16:36:19 +0100
commit98019536daeac4c136ce9b327545a27da6dbb2e0 (patch)
treebae37b8e6fcb5852002f10f65fa3ee632b483c45
parentc5e114c00cccb1b98dac7cb96de21e4ba53647c2 (diff)
Resolves: fdo#58170 use selected tab page helpid as final fallback
Change-Id: I73a064a40476f685dbf19097115bd48c5cc0f578
-rw-r--r--cui/source/options/treeopt.cxx11
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;
}