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:
Gabor Apati-Nagy 2015-05-18 19:25:46 +01:00
parent 3bae352e33
commit 3c3ef707fa
2 changed files with 2 additions and 13 deletions

View File

@ -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);
}
}
}
}

View File

@ -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);
}
});
}