summaryrefslogtreecommitdiff
path: root/dbaccess/source/ui
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-12-17 15:19:07 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-12-17 22:06:35 +0100
commit0a9917b756cf49b117766c9236a7bf63d6d4b607 (patch)
treefac1afc11e4417ce7c19ff4c0ca058721c8c5643 /dbaccess/source/ui
parentcabc14a343142e53ab1ef0085b023bb7fadcf449 (diff)
tdf#122152 set dialog parent
Change-Id: I15f6d577c3584d28f667a04b5571de80effe53fe Reviewed-on: https://gerrit.libreoffice.org/65274 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'dbaccess/source/ui')
-rw-r--r--dbaccess/source/ui/uno/composerdialogs.cxx8
1 files changed, 7 insertions, 1 deletions
diff --git a/dbaccess/source/ui/uno/composerdialogs.cxx b/dbaccess/source/ui/uno/composerdialogs.cxx
index 95186c74be02..c9b1973bb4a9 100644
--- a/dbaccess/source/ui/uno/composerdialogs.cxx
+++ b/dbaccess/source/ui/uno/composerdialogs.cxx
@@ -198,7 +198,7 @@ namespace dbaui
void SAL_CALL RowsetOrderDialog::initialize( const Sequence< Any >& aArguments )
{
- if( aArguments.getLength() == 2 )
+ if (aArguments.getLength() == 2 || aArguments.getLength() == 3)
{
Reference<css::sdb::XSingleSelectQueryComposer> xQueryComposer;
aArguments[0] >>= xQueryComposer;
@@ -206,6 +206,12 @@ namespace dbaui
aArguments[1] >>= xRowSet;
setPropertyValue( "QueryComposer", makeAny( xQueryComposer ) );
setPropertyValue( "RowSet", makeAny( xRowSet ) );
+ if (aArguments.getLength() == 3)
+ {
+ Reference<css::awt::XWindow> xParentWindow;
+ aArguments[2] >>= xParentWindow;
+ setPropertyValue("ParentWindow", makeAny(xParentWindow));
+ }
}
else
ComposerDialog::initialize(aArguments);