mirror of
https://github.com/xcp-ng/xenadmin.git
synced 2025-01-20 07:19:18 +01:00
CA-116505: Popup when adding CD drive to running HVM guest without tools does not get focus
Using ShowDialog() instead of Show() Also removed unnecessary code that displayed the popup again Signed-off-by: Gabor Apati-Nagy <gabor.apati-nagy@citrix.com>
This commit is contained in:
parent
3bae352e33
commit
3c3ef707fa
@ -232,17 +232,6 @@ namespace XenAdmin.Controls
|
||||
{
|
||||
CreateCdDriveAction createDriveAction = new CreateCdDriveAction(VM, false,NewDiskDialog.ShowMustRebootBoxCD,NewDiskDialog.ShowVBDWarningBox);
|
||||
new ActionProgressDialog(createDriveAction, ProgressBarStyle.Marquee).ShowDialog(this);
|
||||
if (createDriveAction.Succeeded)
|
||||
{
|
||||
if (!Program.RunInAutomatedTestMode)
|
||||
{
|
||||
new ThreeButtonDialog(
|
||||
new ThreeButtonDialog.Details(
|
||||
SystemIcons.Information,
|
||||
Messages.NEW_DVD_DRIVE_REBOOT,
|
||||
Messages.NEW_DVD_DRIVE_CREATED)).ShowDialog(Program.MainWindow);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -532,7 +532,7 @@ namespace XenAdmin.Dialogs
|
||||
NEWDISKWIZARD_MESSAGE,
|
||||
Messages.
|
||||
NEWDISKWIZARD_MESSAGE_TITLE))
|
||||
.Show(Program.MainWindow);
|
||||
.ShowDialog(Program.MainWindow);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -549,7 +549,7 @@ namespace XenAdmin.Dialogs
|
||||
NEW_DVD_DRIVE_REBOOT,
|
||||
Messages.
|
||||
NEW_DVD_DRIVE_CREATED))
|
||||
.Show(Program.MainWindow);
|
||||
.ShowDialog(Program.MainWindow);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user