summaryrefslogtreecommitdiff
path: root/sw/source/ui/dbui/dbtablepreviewdialog.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/ui/dbui/dbtablepreviewdialog.cxx')
-rw-r--r--sw/source/ui/dbui/dbtablepreviewdialog.cxx24
1 files changed, 12 insertions, 12 deletions
diff --git a/sw/source/ui/dbui/dbtablepreviewdialog.cxx b/sw/source/ui/dbui/dbtablepreviewdialog.cxx
index d716aefbb689..6a2f0e916a25 100644
--- a/sw/source/ui/dbui/dbtablepreviewdialog.cxx
+++ b/sw/source/ui/dbui/dbtablepreviewdialog.cxx
@@ -88,19 +88,19 @@ SwDBTablePreviewDialog::SwDBTablePreviewDialog(weld::Window* pParent, uno::Seque
{
xFrame.clear();
}
- if (xFrame.is())
- {
- m_xFrameListener.set(new DBTablePreviewFrame(xFrame));
- xFrame->addEventListener(m_xFrameListener);
+ if (!xFrame.is())
+ return;
- util::URL aURL;
- aURL.Complete = ".component:DB/DataSourceBrowser";
- uno::Reference<frame::XDispatch> xD = xFrame->queryDispatch(aURL, "", 0x0C);
- if (xD.is())
- {
- xD->dispatch(aURL, rValues);
- m_xBeamerWIN->show();
- }
+ m_xFrameListener.set(new DBTablePreviewFrame(xFrame));
+ xFrame->addEventListener(m_xFrameListener);
+
+ util::URL aURL;
+ aURL.Complete = ".component:DB/DataSourceBrowser";
+ uno::Reference<frame::XDispatch> xD = xFrame->queryDispatch(aURL, "", 0x0C);
+ if (xD.is())
+ {
+ xD->dispatch(aURL, rValues);
+ m_xBeamerWIN->show();
}
}