automationdev300m87: #i112208# - Reverted hCloseDocument() to its old form. The extensions are no longer required
This commit is contained in:
parent
03767ada71
commit
c3541afaf0
1 changed files with 1 additions and 19 deletions
|
@ -243,35 +243,17 @@ end function
|
|||
'
|
||||
function hCloseDocument()
|
||||
|
||||
'/// Trigger FileClose slot'
|
||||
hUseAsyncSlot( "FileClose")
|
||||
|
||||
'/// Accept to lose changes'
|
||||
Kontext "Active"
|
||||
if ( Active.Exists( 2 ) ) then
|
||||
try
|
||||
Active.No
|
||||
catch
|
||||
Active.click( 202 )
|
||||
endcatch
|
||||
end if
|
||||
|
||||
if ( Active.exists() ) then
|
||||
try
|
||||
Active.click( 202 )
|
||||
catch
|
||||
endcatch
|
||||
endif
|
||||
|
||||
if ( Active.exists() ) then
|
||||
try
|
||||
warnlog( "hCloseDocument: Unexpected dialog: " & Active.getText() )
|
||||
Active.ok()
|
||||
catch
|
||||
Active.yes()
|
||||
endcatch
|
||||
endif
|
||||
|
||||
'/// Wait for FileClose to complete'
|
||||
WaitSlot( 2000 )
|
||||
|
||||
end function
|
||||
|
|
Loading…
Reference in a new issue