summaryrefslogtreecommitdiff
path: root/vcl/source/control/button.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2012-09-25 20:37:53 +0100
committerCaolán McNamara <caolanm@redhat.com>2012-09-28 08:48:52 +0100
commitdc5d6deb158bf4506630a4ef006b4eaeb9998fbf (patch)
treea270696256fb25757612d7b0062ee9da351fd67c /vcl/source/control/button.cxx
parent5d60e826ae6b10161ecff64fbfbf9af230898764 (diff)
we need to have the outermost TabDialog as the recipient of tab keystrokes
Change-Id: I1d230512d2145a9a3198c25c60dcd8954928120e
Diffstat (limited to 'vcl/source/control/button.cxx')
-rw-r--r--vcl/source/control/button.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/vcl/source/control/button.cxx b/vcl/source/control/button.cxx
index 38bdee46455a..ae78dc0474e1 100644
--- a/vcl/source/control/button.cxx
+++ b/vcl/source/control/button.cxx
@@ -1814,7 +1814,7 @@ void OKButton::Click()
// close parent if no link set
if ( !GetClickHdl() )
{
- Window* pParent = getLegacyNonLayoutParent(GetParent());
+ Window* pParent = getNonLayoutParent(this);
if ( pParent->IsSystemWindow() )
{
if ( pParent->IsDialog() )
@@ -1891,7 +1891,7 @@ void CancelButton::Click()
// close parent if link not set
if ( !GetClickHdl() )
{
- Window* pParent = getLegacyNonLayoutParent(GetParent());
+ Window* pParent = getNonLayoutParent(this);
if ( pParent->IsSystemWindow() )
{
if ( pParent->IsDialog() )