[Libreoffice-commits] core.git: sfx2/source

Caolán McNamara (via logerrit) logerrit at kemper.freedesktop.org
Tue Mar 16 11:50:13 UTC 2021


 sfx2/source/sidebar/Deck.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 98fbedf9e59ba5b6159abfbc85c05c00ceab5b90
Author:     Caolán McNamara <caolanm at redhat.com>
AuthorDate: Mon Mar 15 20:44:02 2021 +0000
Commit:     Caolán McNamara <caolanm at redhat.com>
CommitDate: Tue Mar 16 12:49:17 2021 +0100

    a panel if present is always enabled
    
    there's no case, as far as I can tell, where the panel container window
    is in a disabled state. Hidden yes, disabled no.
    
    "enabled" in the json dump was added by
    
    commit fc93925a935960c750f400b9b3c79a592baaf5fe
    Date:   Fri Jan 10 18:03:49 2020 +0000
    
        lok: jsdialog creation for sidebar panels cleanup.
    
    presumably for completeness sake
    
    Change-Id: I7c04190118db52d57e514f391b953b4deb00d533
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/112542
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolanm at redhat.com>

diff --git a/sfx2/source/sidebar/Deck.cxx b/sfx2/source/sidebar/Deck.cxx
index 0beb6376c8f0..7444f7fe7b15 100644
--- a/sfx2/source/sidebar/Deck.cxx
+++ b/sfx2/source/sidebar/Deck.cxx
@@ -218,7 +218,7 @@ void Deck::DumpAsPropertyTree(tools::JsonWriter& rJsonWriter)
         rJsonWriter.put("id", it->GetId());
         rJsonWriter.put("type", "panel");
         rJsonWriter.put("text", it->GetText());
-        rJsonWriter.put("enabled", it->IsEnabled());
+        rJsonWriter.put("enabled", true);
 
         {
             auto children2Node = rJsonWriter.startArray("children");


More information about the Libreoffice-commits mailing list