summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-03-12 15:25:32 +0000
committerMichael Meeks <michael.meeks@collabora.com>2018-03-16 10:57:13 +0100
commitbe83e928279bf3c6ae3fd316571d02dc452b45e8 (patch)
tree1bca70d89860fbb2ceb90403f9fe31ab1f3e7e14 /framework
parent87d8df83efd210a322b42f590aaff3d2e8efe2bc (diff)
tdf#116277 blank frame into which document will load shown too early
normally we want this to be the window that is the parent for any warning or password dialog. But for these (weird, see also impl_findSlotParam) frames dispatched with slotid arguments, they are opened before the dialog which will fill them is launched. Presumably in sane land the dialog would be dispatched from the menu entry, then on its create the frame opened with the desired contents. Change-Id: I1234b648ca1bd7fd2109cb4d3c70d5bfed9ab563 Reviewed-on: https://gerrit.libreoffice.org/51152 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'framework')
-rw-r--r--framework/source/loadenv/loadenv.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/source/loadenv/loadenv.cxx b/framework/source/loadenv/loadenv.cxx
index 6ad9498f776f..a2cfb5e2b9f7 100644
--- a/framework/source/loadenv/loadenv.cxx
+++ b/framework/source/loadenv/loadenv.cxx
@@ -1074,7 +1074,9 @@ bool LoadEnv::impl_loadContent()
{"Parent", uno::Any(xWindow)}
}));
xHandler->initialize(aArguments);
- impl_makeFrameWindowVisible(xWindow, false);
+ //show the frame now, unless (tdf#116277) its the labels/business cards slave frame
+ if (m_aURL.Arguments.indexOf("slot=") == -1)
+ impl_makeFrameWindowVisible(xWindow, false);
}
}