diff options
author | Caolán McNamara <caolanm@redhat.com> | 2020-12-04 14:24:07 +0000 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2020-12-04 17:20:19 +0100 |
commit | 51d7f7717b12171d215df3a9920d431b0beae85a (patch) | |
tree | 93bc6df848c1f68b38cbd769d828f6e905a3318f | |
parent | 22c7ad49679c2abcac4409c93d32b20746b16904 (diff) |
create an awt::XPopupMenu the standard way
Change-Id: If3349380d29ba56b5f61dc948a770ab2fe1fb671
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/107226
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r-- | dbaccess/source/ui/app/AppDetailPageHelper.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dbaccess/source/ui/app/AppDetailPageHelper.cxx b/dbaccess/source/ui/app/AppDetailPageHelper.cxx index 3dd2195f7965..02a80d2046d7 100644 --- a/dbaccess/source/ui/app/AppDetailPageHelper.cxx +++ b/dbaccess/source/ui/app/AppDetailPageHelper.cxx @@ -21,6 +21,7 @@ #include <tools/diagnose_ex.h> #include <tabletree.hxx> #include <dbtreelistbox.hxx> +#include <com/sun/star/awt/PopupMenu.hpp> #include <com/sun/star/awt/XTabController.hpp> #include <com/sun/star/container/XChild.hpp> #include <com/sun/star/container/XContainer.hpp> @@ -50,7 +51,6 @@ #include <imageprovider.hxx> #include <vcl/commandinfoprovider.hxx> #include <vcl/cvtgrf.hxx> -#include <toolkit/awt/vclxmenu.hxx> #include <tools/stream.hxx> #include <rtl/ustrbuf.hxx> #include "AppController.hxx" @@ -1117,8 +1117,8 @@ IMPL_LINK_NOARG(OAppDetailPageHelper, OnDropdownClickHdl, weld::ToggleButton&, v if (!xPopupController.is()) return; - rtl::Reference xPopupMenu(new VCLXPopupMenu); - xPopupController->setPopupMenu(xPopupMenu.get()); + css::uno::Reference<css::awt::XPopupMenu> xPopupMenu(css::awt::PopupMenu::create(xContext)); + xPopupController->setPopupMenu(xPopupMenu); css::util::URL aTargetURL; Reference<XDispatchProvider> xDispatchProvider(xFrame, css::uno::UNO_QUERY); |