sw/source/ui/misc/contentcontroldlg.cxx |    5 -----
 vcl/jsdialog/enabled.cxx                |    4 +++-
 2 files changed, 3 insertions(+), 6 deletions(-)

New commits:
commit 67160035d65f9b43b8483e5900d2a2812e1bbecc
Author:     rash419 <[email protected]>
AuthorDate: Wed Jun 15 17:23:44 2022 +0530
Commit:     Szymon Kłos <[email protected]>
CommitDate: Sun Nov 20 10:40:33 2022 +0100

    sw: jsdialog: enable contentcontrol and contentcontrollistitem dialogs
    
    contentcontrol: fix: modify, remove, move up/down buttons doesnot work even 
if item is selected in jsdialog
    
    Signed-off-by: rash419 <[email protected]>
    Change-Id: Ib038ce2a3ff6f92ab7314b18f36a038991a35f3c
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/135902
    Tested-by: Jenkins CollaboraOffice <[email protected]>
    Reviewed-by: Miklos Vajna <[email protected]>
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/142971
    Tested-by: Jenkins
    Reviewed-by: Szymon Kłos <[email protected]>

diff --git a/sw/source/ui/misc/contentcontroldlg.cxx 
b/sw/source/ui/misc/contentcontroldlg.cxx
index ec45e87066c4..799f722945ff 100644
--- a/sw/source/ui/misc/contentcontroldlg.cxx
+++ b/sw/source/ui/misc/contentcontroldlg.cxx
@@ -400,11 +400,6 @@ IMPL_LINK_NOARG(SwContentControlDlg, MoveDownHdl, 
weld::Button&, void)
 
 IMPL_LINK_NOARG(SwContentControlDlg, SelectionChangedHdl, weld::TreeView&, 
void)
 {
-    if (!m_xListItems->has_focus())
-    {
-        return;
-    }
-
     int nRow = m_xListItems->get_selected_index();
     if (nRow < 0)
     {
diff --git a/vcl/jsdialog/enabled.cxx b/vcl/jsdialog/enabled.cxx
index 6ba2adc8b1fc..efb87ac0b9fe 100644
--- a/vcl/jsdialog/enabled.cxx
+++ b/vcl/jsdialog/enabled.cxx
@@ -61,7 +61,9 @@ bool isBuilderEnabled(std::u16string_view rUIFile, bool 
bMobile)
         || rUIFile == u"xmlsec/ui/certpage.ui" || rUIFile == 
u"svx/ui/accessibilitycheckdialog.ui"
         || rUIFile == u"modules/swriter/ui/translationdialog.ui"
         || rUIFile == u"svx/ui/accessibilitycheckentry.ui"
-        || rUIFile == u"cui/ui/widgettestdialog.ui")
+        || rUIFile == u"cui/ui/widgettestdialog.ui"
+        || rUIFile == u"modules/swriter/ui/contentcontroldlg.ui"
+        || rUIFile == u"modules/swriter/ui/contentcontrollistitemdlg.ui")
     {
         return true;
     }

Reply via email to