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

Muhammet Kara (via logerrit) logerrit at kemper.freedesktop.org
Fri Jun 26 07:16:49 UTC 2020


 cui/source/customize/SvxMenuConfigPage.cxx    |    3 +++
 cui/source/customize/SvxToolbarConfigPage.cxx |    3 +++
 cui/source/customize/cfg.cxx                  |    1 +
 3 files changed, 7 insertions(+)

New commits:
commit e4e69bb6751ffdc53d8a4d8869249545c9eb64f0
Author:     Muhammet Kara <muhammet.kara at collabora.com>
AuthorDate: Fri Jun 26 02:09:34 2020 +0300
Commit:     Muhammet Kara <muhammet.kara at collabora.com>
CommitDate: Fri Jun 26 09:16:10 2020 +0200

    Customize: Update description box on auto select
    
    When you open the dialog, select a category, or
    enter a search/filter term, the first entry on the
    functions list was selected automatically but
    the description box was not updated properly.
    
    Change-Id: I23737c540ab67af3e79694365b8c8c31c4f60ed3
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/97188
    Tested-by: Jenkins
    Reviewed-by: Muhammet Kara <muhammet.kara at collabora.com>

diff --git a/cui/source/customize/SvxMenuConfigPage.cxx b/cui/source/customize/SvxMenuConfigPage.cxx
index 90f421013fba..ca685311e8d3 100644
--- a/cui/source/customize/SvxMenuConfigPage.cxx
+++ b/cui/source/customize/SvxMenuConfigPage.cxx
@@ -145,6 +145,7 @@ void SvxMenuConfigPage::Init()
         comphelper::getProcessComponentContext(),
         m_xFrame, m_aModuleId);
     m_xCommandCategoryListBox->categorySelected(m_xFunctions.get(), OUString(), GetSaveInData());
+    SelectFunctionHdl(m_xFunctions->get_widget());
 }
 
 IMPL_LINK_NOARG(SvxMenuConfigPage, SelectMenuEntry, weld::TreeView&, void)
@@ -347,6 +348,8 @@ IMPL_LINK_NOARG(SvxMenuConfigPage, SelectCategory, weld::ComboBox&, void)
     OUString aSearchTerm( m_xSearchEdit->get_text() );
 
     m_xCommandCategoryListBox->categorySelected(m_xFunctions.get(), aSearchTerm, GetSaveInData());
+
+    SelectFunctionHdl(m_xFunctions->get_widget());
 }
 
 IMPL_LINK_NOARG( SvxMenuConfigPage, AddCommandHdl, weld::Button&, void )
diff --git a/cui/source/customize/SvxToolbarConfigPage.cxx b/cui/source/customize/SvxToolbarConfigPage.cxx
index 57d1baa0268b..ea17c407c0f2 100644
--- a/cui/source/customize/SvxToolbarConfigPage.cxx
+++ b/cui/source/customize/SvxToolbarConfigPage.cxx
@@ -277,6 +277,7 @@ void SvxToolbarConfigPage::Init()
         comphelper::getProcessComponentContext(),
         m_xFrame, m_aModuleId);
     m_xCommandCategoryListBox->categorySelected(m_xFunctions.get(), OUString(), GetSaveInData());
+    SelectFunctionHdl(m_xFunctions->get_widget());
 }
 
 SaveInData* SvxToolbarConfigPage::CreateSaveInData(
@@ -425,6 +426,8 @@ IMPL_LINK_NOARG( SvxToolbarConfigPage, SelectCategory, weld::ComboBox&, void )
     OUString aSearchTerm(m_xSearchEdit->get_text());
 
     m_xCommandCategoryListBox->categorySelected(m_xFunctions.get(), aSearchTerm, GetSaveInData());
+
+    SelectFunctionHdl(m_xFunctions->get_widget());
 }
 
 IMPL_LINK_NOARG( SvxToolbarConfigPage, AddCommandHdl, weld::Button&, void )
diff --git a/cui/source/customize/cfg.cxx b/cui/source/customize/cfg.cxx
index 94ed598c1bf3..401f48f7a664 100644
--- a/cui/source/customize/cfg.cxx
+++ b/cui/source/customize/cfg.cxx
@@ -1605,6 +1605,7 @@ IMPL_LINK_NOARG(SvxConfigPage, ImplUpdateDataHdl, Timer*, void)
 {
     OUString aSearchTerm(m_xSearchEdit->get_text());
     m_xCommandCategoryListBox->categorySelected(m_xFunctions.get(), aSearchTerm, GetSaveInData());
+    SelectFunctionHdl(m_xFunctions->get_widget());
 }
 
 IMPL_LINK_NOARG(SvxConfigPage, SearchUpdateHdl, weld::Entry&, void)


More information about the Libreoffice-commits mailing list