diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-02-06 15:43:43 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-02-06 15:44:03 +0100 |
commit | d2d586446292db0747898bb0d6161637b76c33af (patch) | |
tree | f8af322668efc22ff997f0cbe69c5a4a0789240b /vcl/source/control/tabctrl.cxx | |
parent | 697e84f5deebe60a4ebbcf3820c1b50bf5e9d271 (diff) |
TabControl::DeactivatePage should return bool
Change-Id: I9fb774a235db2b9bc759976d2d3f84363ed944ec
Diffstat (limited to 'vcl/source/control/tabctrl.cxx')
-rw-r--r-- | vcl/source/control/tabctrl.cxx | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/vcl/source/control/tabctrl.cxx b/vcl/source/control/tabctrl.cxx index 9e4646204d76..222149b2799b 100644 --- a/vcl/source/control/tabctrl.cxx +++ b/vcl/source/control/tabctrl.cxx @@ -1698,12 +1698,9 @@ void TabControl::ActivatePage() // ----------------------------------------------------------------------- -long TabControl::DeactivatePage() +bool TabControl::DeactivatePage() { - if ( maDeactivateHdl.IsSet() ) - return maDeactivateHdl.Call( this ); - else - return sal_True; + return !maDeactivateHdl.IsSet() || maDeactivateHdl.Call( this ); } // ----------------------------------------------------------------------- |