sw/source/ui/dbui/dbtablepreviewdialog.cxx |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 8811dd76f02bce0425d784770af8c283db216ee9
Author:     Caolán McNamara <[email protected]>
AuthorDate: Fri Feb 25 08:24:47 2022 +0000
Commit:     Caolán McNamara <[email protected]>
CommitDate: Fri Feb 25 12:20:38 2022 +0100

    replace mysterious 0x0C with more meaningful FrameSearchFlag
    
    Change-Id: Id95879ed04b844d939062f0d6a21b4ab508b9d73
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/130519
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <[email protected]>

diff --git a/sw/source/ui/dbui/dbtablepreviewdialog.cxx 
b/sw/source/ui/dbui/dbtablepreviewdialog.cxx
index b85f169b4f45..cd1556776da1 100644
--- a/sw/source/ui/dbui/dbtablepreviewdialog.cxx
+++ b/sw/source/ui/dbui/dbtablepreviewdialog.cxx
@@ -22,6 +22,7 @@
 #include <cppuhelper/implbase.hxx>
 #include <com/sun/star/lang/XEventListener.hpp>
 #include <com/sun/star/frame/Frame.hpp>
+#include <com/sun/star/frame/FrameSearchFlag.hpp>
 
 using namespace ::com::sun::star;
 using namespace ::com::sun::star::uno;
@@ -96,7 +97,8 @@ SwDBTablePreviewDialog::SwDBTablePreviewDialog(weld::Window* 
pParent, uno::Seque
 
     util::URL aURL;
     aURL.Complete = ".component:DB/DataSourceBrowser";
-    uno::Reference<frame::XDispatch> xD = xFrame->queryDispatch(aURL, "", 
0x0C);
+    uno::Reference<frame::XDispatch> xD = xFrame->queryDispatch(aURL, "",
+            css::frame::FrameSearchFlag::CHILDREN | 
css::frame::FrameSearchFlag::CREATE);
     if (xD.is())
     {
         xD->dispatch(aURL, rValues);

Reply via email to