[Libreoffice-commits] core.git: cui/source cui/uiconfig

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Fri Jun 25 19:13:53 UTC 2021


 cui/source/options/optsave.cxx |    2 ++
 cui/uiconfig/ui/optsavepage.ui |    1 -
 2 files changed, 2 insertions(+), 1 deletion(-)

New commits:
commit bbddb67a59655660ea028bcf1ca23c0f75a29779
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Jun 25 16:56:50 2021 +0100
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Fri Jun 25 21:13:10 2021 +0200

    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 at redhat.com>

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>


More information about the Libreoffice-commits mailing list