vcl/source/app/salvtables.cxx |    3 +++
 vcl/source/window/builder.cxx |    3 +++
 2 files changed, 6 insertions(+)

New commits:
commit 465fedc3501284cc5db43b03163d5bd9fc344cd7
Author: Caolán McNamara <caol...@redhat.com>
Date:   Fri Jun 8 11:32:38 2018 +0100

    sync tristate/inconsistent feature
    
    Change-Id: Id1107f4fb1f51f377ad546f9b673f9037fee1538
    Reviewed-on: https://gerrit.libreoffice.org/55459
    Tested-by: Jenkins <c...@libreoffice.org>
    Reviewed-by: Caolán McNamara <caol...@redhat.com>
    Tested-by: Caolán McNamara <caol...@redhat.com>

diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx
index 443e562192e8..0772b53943ee 100644
--- a/vcl/source/app/salvtables.cxx
+++ b/vcl/source/app/salvtables.cxx
@@ -1129,6 +1129,7 @@ public:
     virtual void set_active(bool active) override
     {
         m_bBlockNotify = true;
+        m_xCheckButton->EnableTriState(false);
         m_xCheckButton->Check(active);
         m_bBlockNotify = false;
     }
@@ -1141,6 +1142,7 @@ public:
     virtual void set_inconsistent(bool inconsistent) override
     {
         m_bBlockNotify = true;
+        m_xCheckButton->EnableTriState(true);
         m_xCheckButton->SetState(inconsistent ? TRISTATE_INDET : 
TRISTATE_FALSE);
         m_bBlockNotify = false;
     }
@@ -1160,6 +1162,7 @@ IMPL_LINK_NOARG(SalInstanceCheckButton, ToggleHdl, 
CheckBox&, void)
 {
     if (m_bBlockNotify)
         return;
+    m_xCheckButton->EnableTriState(false);
     signal_toggled();
 }
 
diff --git a/vcl/source/window/builder.cxx b/vcl/source/window/builder.cxx
index 72f41efad638..8ba726cfdfed 100644
--- a/vcl/source/window/builder.cxx
+++ b/vcl/source/window/builder.cxx
@@ -1550,7 +1550,10 @@ VclPtr<vcl::Window> VclBuilder::makeObject(vcl::Window 
*pParent, const OString &
         else
             xCheckBox = VclPtr<CheckBox>::Create(pParent, nBits);
         if (bIsTriState)
+        {
+            xCheckBox->EnableTriState(true);
             xCheckBox->SetState(TRISTATE_INDET);
+        }
         xCheckBox->SetImageAlign(ImageAlign::Left); //default to left
 
         xWindow = xCheckBox;
_______________________________________________
Libreoffice-commits mailing list
libreoffice-comm...@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to