diff options
author | TokieSan <eltokhy@aucegypt.edu> | 2023-03-27 14:28:45 +0200 |
---|---|---|
committer | Heiko Tietze <heiko.tietze@documentfoundation.org> | 2023-04-19 17:37:39 +0200 |
commit | be1fe4418caa8c26ea53fe1f9acbe36096d5e3a9 (patch) | |
tree | af708cfaf1ad2f0055376c7d75d7a67325fb75c7 /sc | |
parent | 02794cc8c2054f4030c2e0b3dd31976cab53dfcf (diff) |
tdf#150652 Column Type being disabled makes UX unintuitive
Columntype is no longer disabled by default.
Change-Id: I173ec35363278b397a2727cff234c0b4d936ff99
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/149630
Tested-by: Jenkins
Reviewed-by: Heiko Tietze <heiko.tietze@documentfoundation.org>
Reviewed-by: Andreas Heinisch <andreas.heinisch@yahoo.de>
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/dbgui/scuiasciiopt.cxx | 5 | ||||
-rw-r--r-- | sc/source/ui/inc/scuiasciiopt.hxx | 1 |
2 files changed, 1 insertions, 5 deletions
diff --git a/sc/source/ui/dbgui/scuiasciiopt.cxx b/sc/source/ui/dbgui/scuiasciiopt.cxx index df8f77c8553c..9f510c9d7e3d 100644 --- a/sc/source/ui/dbgui/scuiasciiopt.cxx +++ b/sc/source/ui/dbgui/scuiasciiopt.cxx @@ -339,7 +339,6 @@ ScImportAsciiDlg::ScImportAsciiDlg(weld::Window* pParent, std::u16string_view aD , mxCkbDetectNumber(m_xBuilder->weld_check_button("detectspecialnumbers")) , mxCkbEvaluateFormulas(m_xBuilder->weld_check_button("evaluateformulas")) , mxCkbSkipEmptyCells(m_xBuilder->weld_check_button("skipemptycells")) - , mxFtType(m_xBuilder->weld_label("textcolumntype")) , mxLbType(m_xBuilder->weld_combo_box("columntype")) , mxAltTitle(m_xBuilder->weld_label("textalttitle")) , mxTableBox(new ScCsvTableBox(*m_xBuilder)) @@ -545,7 +544,6 @@ ScImportAsciiDlg::ScImportAsciiDlg(weld::Window* pParent, std::u16string_view aD } mxLbType->connect_changed( LINK( this, ScImportAsciiDlg, LbColTypeHdl ) ); - mxFtType->set_sensitive(false); mxLbType->set_sensitive(false); // *** table box preview *** @@ -931,12 +929,11 @@ IMPL_LINK( ScImportAsciiDlg, ColTypeHdl, ScCsvTableBox&, rTableBox, void ) bool bEmpty = (nType == CSV_TYPE_MULTI); bool bEnable = ((0 <= nType) && (nType < nTypeCount)) || bEmpty; - mxFtType->set_sensitive( bEnable ); mxLbType->set_sensitive( bEnable ); if (bEmpty) mxLbType->set_active(-1); - else if (bEnable) + else mxLbType->set_active(nType); } diff --git a/sc/source/ui/inc/scuiasciiopt.hxx b/sc/source/ui/inc/scuiasciiopt.hxx index f966bd2be895..5649fb3da234 100644 --- a/sc/source/ui/inc/scuiasciiopt.hxx +++ b/sc/source/ui/inc/scuiasciiopt.hxx @@ -74,7 +74,6 @@ class ScImportAsciiDlg : public weld::GenericDialogController std::unique_ptr<weld::CheckButton> mxCkbEvaluateFormulas; std::unique_ptr<weld::CheckButton> mxCkbSkipEmptyCells; - std::unique_ptr<weld::Label> mxFtType; std::unique_ptr<weld::ComboBox> mxLbType; std::unique_ptr<weld::Label> mxAltTitle; |