diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-12-17 16:16:09 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-12-17 22:02:15 +0100 |
commit | 853df3ce24d4daa113a15d4211be682ada1fa6f2 (patch) | |
tree | 5a22acdcb6fe978952bc0b5dca9d30352090dbb2 /vcl/source/app | |
parent | 493429cc91d41b719d446e43415f43fb9fa5aee4 (diff) |
add Menu::get_sensitive
Change-Id: I242ace497d7f049d9908cc6461b7eefc6d4a2b87
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107889
Tested-by: Caolán McNamara <caolanm@redhat.com>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'vcl/source/app')
-rw-r--r-- | vcl/source/app/salvtables.cxx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/vcl/source/app/salvtables.cxx b/vcl/source/app/salvtables.cxx index 167ff5766084..0524244ed6d2 100644 --- a/vcl/source/app/salvtables.cxx +++ b/vcl/source/app/salvtables.cxx @@ -737,6 +737,10 @@ void SalInstanceMenu::set_sensitive(const OString& rIdent, bool bSensitive) { m_xMenu->EnableItem(rIdent, bSensitive); } +bool SalInstanceMenu::get_sensitive(const OString& rIdent) const +{ + return m_xMenu->IsItemEnabled(m_xMenu->GetItemId(rIdent)); +} void SalInstanceMenu::set_active(const OString& rIdent, bool bActive) { m_xMenu->CheckItem(rIdent, bActive); |