Common: fix weird crash when loading object properties

This commit is contained in:
Jonathan Jenne
2022-04-11 16:07:49 +02:00
parent 435c32d5cb
commit 98e4e6020d

View File

@@ -21,6 +21,7 @@ Public Class ctrlObjectPropertyDialog
Private Property Client As Client
Private Property Environment As Environment
Private Property ObjectId As Long
Private Property HostForm As Form
Private ReadOnly Changes As New Dictionary(Of String, Object)
@@ -40,6 +41,7 @@ Public Class ctrlObjectPropertyDialog
Public Sub Initialize(pLogConfig As LogConfig, pHostForm As Form, pClient As Client, pEnv As Environment)
LogConfig = pLogConfig
Logger = pLogConfig.GetLogger()
HostForm = pHostForm
ErrorHandler = New BaseErrorHandler(pLogConfig, pHostForm)
ControlManager = New AttributeControls(pLogConfig, pEnv, pClient)
@@ -91,7 +93,7 @@ Public Class ctrlObjectPropertyDialog
End If
IsLoading = True
Dim oLoadingHandle = SplashScreenManager.ShowOverlayForm(Me)
Enabled = False
Try
ObjectId = pObjectId
@@ -131,7 +133,7 @@ Public Class ctrlObjectPropertyDialog
Logger.Error(ex)
Return False
Finally
SplashScreenManager.CloseOverlayForm(oLoadingHandle)
Enabled = True
IsLoading = False
End Try
End Function