mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2024-11-23 20:36:33 +01:00
Merge pull request #20 from MihaelaStoica/master
CA-127974: Added more checks to prevent XenCenter crash while closing [X...
This commit is contained in:
commit
f9a1e7cd63
@ -337,6 +337,9 @@ namespace XenAdmin.Controls.MainWindowControls
|
||||
|
||||
private void RefreshTreeView()
|
||||
{
|
||||
if (Disposing || IsDisposed || Program.Exiting)
|
||||
return;
|
||||
|
||||
Program.Invoke(this, () =>
|
||||
{
|
||||
if (ignoreRefreshTreeView > 0)
|
||||
|
@ -596,8 +596,8 @@ namespace XenAdmin
|
||||
Messages.MESSAGEBOX_PROGRAM_UNEXPECTED_TITLE));
|
||||
|
||||
// CA-44733
|
||||
if (Program.MainWindow != null && !Program.MainWindow.InvokeRequired)
|
||||
d.ShowDialog(Program.MainWindow);
|
||||
if (MainWindow != null && !IsExiting(MainWindow) && !MainWindow.InvokeRequired)
|
||||
d.ShowDialog(MainWindow);
|
||||
else
|
||||
d.ShowDialog();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user