diff options
author | Szymon Kłos <szymon.klos@collabora.com> | 2019-10-15 17:22:32 +0200 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2019-10-16 10:27:14 +0200 |
commit | 4961eccc77ddcda06e3277119fc43fd2656d78a6 (patch) | |
tree | bd0c94fc67034d6b3173f970ed3e7e6e79f9087c /chart2/source | |
parent | a15459316bcf18000a74c3779a60689c828c5870 (diff) |
Disable chart doubleclick on mobile
To not show any dialog.
Change-Id: Ie19df429b927f746d3fc511ab0aa7b489ec1fd18
Reviewed-on: https://gerrit.libreoffice.org/80851
Tested-by: Jenkins
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
Diffstat (limited to 'chart2/source')
-rw-r--r-- | chart2/source/controller/main/ChartController_Window.cxx | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chart2/source/controller/main/ChartController_Window.cxx b/chart2/source/controller/main/ChartController_Window.cxx index 2d28b7d9f233..75f44d234a04 100644 --- a/chart2/source/controller/main/ChartController_Window.cxx +++ b/chart2/source/controller/main/ChartController_Window.cxx @@ -82,6 +82,9 @@ #include <tools/diagnose_ex.h> #include <sal/log.hxx> +#include <comphelper/lok.hxx> +#include <sfx2/lokhelper.hxx> + #define DRGPIX 2 // Drag MinMove in Pixel using namespace ::com::sun::star; @@ -925,6 +928,10 @@ void ChartController::execute_MouseButtonUp( const MouseEvent& rMEvt ) void ChartController::execute_DoubleClick( const Point* pMousePixel ) { + bool isMobile = comphelper::LibreOfficeKit::isMobile(SfxLokHelper::getView()); + if (isMobile) + return; + bool bEditText = false; if ( m_aSelection.hasSelection() ) { |