[Libreoffice-commits] core.git: framework/source
Maxim Monastirsky (via logerrit)
logerrit at kemper.freedesktop.org
Wed Aug 19 08:39:17 UTC 2020
framework/source/uielement/resourcemenucontroller.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 1cbbf63b7670a3d85a5a29df6124467e954cc7e9
Author: Maxim Monastirsky <momonasmon at gmail.com>
AuthorDate: Fri Aug 14 18:18:20 2020 +0300
Commit: Maxim Monastirsky <momonasmon at gmail.com>
CommitDate: Wed Aug 19 10:38:27 2020 +0200
Always prefer Value over ResourceURL
Make this not depend on a particular implementation in
the UIControllerFactory class.
Change-Id: I277a6e6c9fa986cbdb0cf03975f91731c6187dca
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/100966
Tested-by: Jenkins
Tested-by: Maxim Monastirsky <momonasmon at gmail.com>
Reviewed-by: Maxim Monastirsky <momonasmon at gmail.com>
diff --git a/framework/source/uielement/resourcemenucontroller.cxx b/framework/source/uielement/resourcemenucontroller.cxx
index f1f7dace3289..60a7af1aefba 100644
--- a/framework/source/uielement/resourcemenucontroller.cxx
+++ b/framework/source/uielement/resourcemenucontroller.cxx
@@ -95,7 +95,8 @@ ResourceMenuController::ResourceMenuController( const css::uno::Reference< css::
}
else if ( aPropValue.Name == "ResourceURL" )
{
- aPropValue.Value >>= m_aMenuURL;
+ if ( m_aMenuURL.isEmpty() )
+ aPropValue.Value >>= m_aMenuURL;
}
else if ( aPropValue.Name == "Frame" )
aPropValue.Value >>= m_xFrame;
More information about the Libreoffice-commits
mailing list