diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-15 08:56:07 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-04-15 09:39:03 +0200 |
commit | 598a65a3c1632c24f2aac38c5a2c9f6a55618cd6 (patch) | |
tree | ab510c8d34e95b8414c0a43726a0152073ed277d /dbaccess/source/ui/querydesign/limitboxcontroller.cxx | |
parent | b9db7c7236ab75199c281a510546d6778d28e474 (diff) |
loplugin:flatten in dbaccess
Change-Id: Ifcfd3637fbce6dc3a07a1859f102a6ac85149190
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/92237
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'dbaccess/source/ui/querydesign/limitboxcontroller.cxx')
-rw-r--r-- | dbaccess/source/ui/querydesign/limitboxcontroller.cxx | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/dbaccess/source/ui/querydesign/limitboxcontroller.cxx b/dbaccess/source/ui/querydesign/limitboxcontroller.cxx index baaca8b8e5c8..99c5ca2373d7 100644 --- a/dbaccess/source/ui/querydesign/limitboxcontroller.cxx +++ b/dbaccess/source/ui/querydesign/limitboxcontroller.cxx @@ -240,21 +240,21 @@ void SAL_CALL LimitBoxController::dispose() void SAL_CALL LimitBoxController::statusChanged( const frame::FeatureStateEvent& rEvent ) { - if ( m_xLimitBox ) + if ( !m_xLimitBox ) + return; + + SolarMutexGuard aSolarMutexGuard; + if ( rEvent.FeatureURL.Path == "DBLimit" ) { - SolarMutexGuard aSolarMutexGuard; - if ( rEvent.FeatureURL.Path == "DBLimit" ) + if ( rEvent.IsEnabled ) { - if ( rEvent.IsEnabled ) - { - m_xLimitBox->set_sensitive(true); - sal_Int64 nLimit = 0; - if (rEvent.State >>= nLimit) - m_xLimitBox->set_value(nLimit); - } - else - m_xLimitBox->set_sensitive(false); + m_xLimitBox->set_sensitive(true); + sal_Int64 nLimit = 0; + if (rEvent.State >>= nLimit) + m_xLimitBox->set_value(nLimit); } + else + m_xLimitBox->set_sensitive(false); } } |