diff options
author | Pranam Lashkari <lpranam@collabora.com> | 2024-04-26 23:51:14 +0100 |
---|---|---|
committer | Szymon Kłos <szymon.klos@collabora.com> | 2024-04-29 19:07:31 +0200 |
commit | 7171c9e8f6fecedac29e89deaeb2afa4d67a2a17 (patch) | |
tree | d790c4772f0bf391650973987e4a493d0d1146a1 | |
parent | 7836cb7e90d0214cac08228f5e527322ed6f955c (diff) |
LOK: hide cancel button in csv import dialog
it did not make any sense to have cancel button in this dialog
because it would not load file at all.
user can still use close button in title bar to close dialog
Change-Id: Id3ba3e4030553db18bdbd068d92b3395f4fb8c3d
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166764
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
(cherry picked from commit 290d70a476bab7d100baa3568ec547633109033e)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166835
-rw-r--r-- | sc/source/ui/dbgui/scuiasciiopt.cxx | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sc/source/ui/dbgui/scuiasciiopt.cxx b/sc/source/ui/dbgui/scuiasciiopt.cxx index 126689d7bce8..f1f1224928a1 100644 --- a/sc/source/ui/dbgui/scuiasciiopt.cxx +++ b/sc/source/ui/dbgui/scuiasciiopt.cxx @@ -588,6 +588,9 @@ ScImportAsciiDlg::ScImportAsciiDlg(weld::Window* pParent, const OUString& aDatNa mxCkbSkipEmptyCells->set_active(false); mxCkbSkipEmptyCells->hide(); } + + if (comphelper::LibreOfficeKit::isActive()) + m_xBuilder->weld_button("cancel")->hide(); m_xDialog->SetInstallLOKNotifierHdl(LINK(this, ScImportAsciiDlg, InstallLOKNotifierHdl)); } |