summaryrefslogtreecommitdiff
path: root/sc
diff options
context:
space:
mode:
authorMaxim Monastirsky <momonasmon@gmail.com>2020-08-02 16:30:36 +0300
committerMaxim Monastirsky <momonasmon@gmail.com>2020-08-03 09:57:21 +0200
commite88cf047c70cedd6ac3553258d4d33bee878a1e6 (patch)
treebe5694a31d678c8c7c14687759c6d89e83be4299 /sc
parent456d61ec526e250fd1af894e109d5914ac9c9e6e (diff)
Fix radio buttons in context menus for non-gtk3
The vcl implementation expects menu item attributes to be set on the sub menu they appear in, not on the parent menu. Change-Id: I7d6553126ed1dd5c1434529342b776aee01409a3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/99954 Tested-by: Jenkins Reviewed-by: Maxim Monastirsky <momonasmon@gmail.com>
Diffstat (limited to 'sc')
-rw-r--r--sc/source/ui/inc/acredlin.hxx2
-rw-r--r--sc/source/ui/miscdlgs/acredlin.cxx3
2 files changed, 3 insertions, 2 deletions
diff --git a/sc/source/ui/inc/acredlin.hxx b/sc/source/ui/inc/acredlin.hxx
index 24ac56361a0b..7bca575093d2 100644
--- a/sc/source/ui/inc/acredlin.hxx
+++ b/sc/source/ui/inc/acredlin.hxx
@@ -81,7 +81,7 @@ class ScAcceptChgDlg final : public SfxModelessDialogController
SvxRedlinTable* pTheView; // #i48648 now SvHeaderTabListBox
std::unique_ptr<weld::Container> m_xContentArea;
- std::unique_ptr<weld::Menu> m_xPopup;
+ std::unique_ptr<weld::Menu> m_xPopup, m_xSortMenu;
std::unique_ptr<SvxAcceptChgCtr> m_xAcceptChgCtr;
void Init();
diff --git a/sc/source/ui/miscdlgs/acredlin.cxx b/sc/source/ui/miscdlgs/acredlin.cxx
index fecbd56db7f5..3ea6c43dc74e 100644
--- a/sc/source/ui/miscdlgs/acredlin.cxx
+++ b/sc/source/ui/miscdlgs/acredlin.cxx
@@ -98,6 +98,7 @@ ScAcceptChgDlg::ScAcceptChgDlg(SfxBindings* pB, SfxChildWindow* pCW, weld::Windo
, bUseColor(false)
, m_xContentArea(m_xDialog->weld_content_area())
, m_xPopup(m_xBuilder->weld_menu("calcmenu"))
+ , m_xSortMenu(m_xBuilder->weld_menu("calcsortmenu"))
{
m_xAcceptChgCtr.reset(new SvxAcceptChgCtr(m_xContentArea.get(), m_xDialog.get(), m_xBuilder.get()));
nAcceptCount=0;
@@ -1611,7 +1612,7 @@ IMPL_LINK(ScAcceptChgDlg, CommandHdl, const CommandEvent&, rCEvt, bool)
int nSortedCol = rTreeView.get_sort_column();
for (sal_Int32 i = 0; i < 5; ++i)
- m_xPopup->set_active("calcsort" + OString::number(i), i == nSortedCol);
+ m_xSortMenu->set_active("calcsort" + OString::number(i), i == nSortedCol);
m_xPopup->set_sensitive("calcedit", false);