diff options
author | Caolán McNamara <caolanm@redhat.com> | 2012-09-25 20:37:53 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2012-09-28 08:48:52 +0100 |
commit | dc5d6deb158bf4506630a4ef006b4eaeb9998fbf (patch) | |
tree | a270696256fb25757612d7b0062ee9da351fd67c /vcl/source/control/button.cxx | |
parent | 5d60e826ae6b10161ecff64fbfbf9af230898764 (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.cxx | 4 |
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() ) |