summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorJean-Pierre Ledure <jp@ledure.be>2013-12-06 17:29:51 +0100
committerLionel Elie Mamane <lionel@mamane.lu>2013-12-08 10:12:30 +0000
commitf44099ee12b3caf3dbf977132b266f8230597141 (patch)
treea4f6894221789822f8374472130f4a309285ab50 /wizards
parent02180aed7dc0b8c5f9cc23b319adc2386a9aab69 (diff)
Access2Base correct behaviour of SelectObject on Linux
( toFront on top of setFocus ) Change-Id: If8184af5f879e2391136f4a265439f0207f6af27 Reviewed-on: https://gerrit.libreoffice.org/6986 Reviewed-by: Lionel Elie Mamane <lionel@mamane.lu> Tested-by: Lionel Elie Mamane <lionel@mamane.lu>
Diffstat (limited to 'wizards')
-rw-r--r--wizards/source/access2base/DoCmd.xba10
1 files changed, 7 insertions, 3 deletions
diff --git a/wizards/source/access2base/DoCmd.xba b/wizards/source/access2base/DoCmd.xba
index 91abb0408e84..4f72c126cc99 100644
--- a/wizards/source/access2base/DoCmd.xba
+++ b/wizards/source/access2base/DoCmd.xba
@@ -1434,8 +1434,11 @@ Public Function SelectObject( Optional pvObjectType As Variant _
Dim oWindow As Object
Set oWindow = _SelectWindow(pvObjectType, pvObjectName)
If IsNull(oWindow.Frame) Then Goto Error_NotFound
- oWindow.Frame.ContainerWindow.setFocus()
- oWindow.Frame.ContainerWindow.setEnable(True) &apos; Added to try to bypass desynchro issue in Linux
+ With oWindow.Frame.ContainerWindow
+ .setFocus()
+ .setEnable(True) &apos; Added to try to bypass desynchro issue in Linux
+ .toFront() &apos; Added to force window change in Linux
+ End With
Exit_Function:
Utils._ResetCalledSub(&quot;SelectObject&quot;)
@@ -1767,6 +1770,7 @@ Dim oWindow As _Window
If _ErrorHandler() Then On Local Error Goto Error_Function
bActive = IsMissing(piWindowType)
+ If IsMissing(psWindow) Then psWindow = &quot;&quot;
Set oWindow.Frame = Nothing
If bActive Then
oWindow.WindowType = -1
@@ -1881,7 +1885,7 @@ Exit_Function:
Error_Function:
TraceError(TRACEABORT, Err, &quot;SelectWindow&quot;, Erl)
GoTo Exit_Function
-End Function &apos; _SelectWindow V0.9.0
+End Function &apos; _SelectWindow V1.0.0
REM -----------------------------------------------------------------------------------------------------------------------
Private Function _SendWithAttachment( _