From 91c586e10c816340523bf1c4df910dd2538c9fee Mon Sep 17 00:00:00 2001 From: Szymon Kłos Date: Thu, 10 Oct 2019 10:35:38 +0200 Subject: Don't show chart wizard on mobile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ic4c65293462d56e1ecedcaaad71575f50b6c1dba Reviewed-on: https://gerrit.libreoffice.org/80592 Tested-by: Jenkins CollaboraOffice Reviewed-by: Szymon Kłos (cherry picked from commit 805ee5251c5ad92b0738f155a63694bc1ecd0f38) Reviewed-on: https://gerrit.libreoffice.org/80598 Tested-by: Jenkins --- sc/source/ui/drawfunc/fuins2.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sc') diff --git a/sc/source/ui/drawfunc/fuins2.cxx b/sc/source/ui/drawfunc/fuins2.cxx index 9123a8ecfc6b..beb43c0a4381 100644 --- a/sc/source/ui/drawfunc/fuins2.cxx +++ b/sc/source/ui/drawfunc/fuins2.cxx @@ -45,6 +45,8 @@ #include #include +#include +#include #include #include #include @@ -606,7 +608,7 @@ FuInsertChart::FuInsertChart(ScTabViewShell& rViewSh, vcl::Window* pWin, ScDrawV if( xChartModel.is() ) xChartModel->unlockControllers(); } - else + else if (!comphelper::LibreOfficeKit::isMobile(SfxLokHelper::getView())) { //the controller will be unlocked by the dialog when the dialog is told to do so -- cgit