summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2021-06-25 16:56:50 +0100
committerCaolán McNamara <caolanm@redhat.com>2021-06-25 21:13:10 +0200
commitbbddb67a59655660ea028bcf1ca23c0f75a29779 (patch)
treef487b87689c1834bf10e647e12a2ed3e2cf2c4c3 /cui
parent80b055683bd8381f78214e2310f2a703ae7638ff (diff)
remove max-length from GtkSpinButton .ui
Change-Id: Ifee61d19ca017205dd4d21de14465eda9773a750 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/117909 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r--cui/source/options/optsave.cxx2
-rw-r--r--cui/uiconfig/ui/optsavepage.ui1
2 files changed, 2 insertions, 1 deletions
diff --git a/cui/source/options/optsave.cxx b/cui/source/options/optsave.cxx
index 3ee6a66c40d2..9ad1c1f5a4c5 100644
--- a/cui/source/options/optsave.cxx
+++ b/cui/source/options/optsave.cxx
@@ -91,6 +91,8 @@ SvxSaveTabPage::SvxSaveTabPage(weld::Container* pPage, weld::DialogController* p
, m_xODFWarningFI(m_xBuilder->weld_widget("odfwarning_image"))
, m_xODFWarningFT(m_xBuilder->weld_label("odfwarning_label"))
{
+ m_xAutoSaveEdit->set_max_length(2);
+
m_xODFVersionLB->set_id(0, OUString::number(SvtSaveOptions::ODFVER_011)); // 1.0/1.1
m_xODFVersionLB->set_id(1, OUString::number(SvtSaveOptions::ODFVER_012)); // 1.2
m_xODFVersionLB->set_id(2, OUString::number(SvtSaveOptions::ODFVER_012_EXT_COMPAT)); // 1.2 Extended (compatibility mode)
diff --git a/cui/uiconfig/ui/optsavepage.ui b/cui/uiconfig/ui/optsavepage.ui
index 8588dde7c7aa..49d237aa0548 100644
--- a/cui/uiconfig/ui/optsavepage.ui
+++ b/cui/uiconfig/ui/optsavepage.ui
@@ -129,7 +129,6 @@
<object class="GtkSpinButton" id="autosave_spin">
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="max_length">2</property>
<property name="activates_default">True</property>
<property name="adjustment">adjustment1</property>
<property name="truncate-multiline">True</property>