mirror of https://github.com/quasar/Quasar.git
Fixed a missing disposing of modal dialog box
This commit is contained in:
parent
3e4dea8a88
commit
8851f5806a
|
@ -275,13 +275,15 @@ private void ctxtUpdate_Click(object sender, EventArgs e)
|
|||
{
|
||||
if (lstClients.SelectedItems.Count != 0)
|
||||
{
|
||||
FrmUpdate frmU = new FrmUpdate(lstClients.SelectedItems.Count);
|
||||
if (frmU.ShowDialog() == DialogResult.OK)
|
||||
using (var frm = new FrmUpdate(lstClients.SelectedItems.Count))
|
||||
{
|
||||
foreach (ListViewItem lvi in lstClients.SelectedItems)
|
||||
if (frm.ShowDialog() == DialogResult.OK)
|
||||
{
|
||||
Client c = (Client)lvi.Tag;
|
||||
new Core.Packets.ServerPackets.Update(Core.Misc.Update.DownloadURL).Execute(c);
|
||||
foreach (ListViewItem lvi in lstClients.SelectedItems)
|
||||
{
|
||||
Client c = (Client) lvi.Tag;
|
||||
new Core.Packets.ServerPackets.Update(Core.Misc.Update.DownloadURL).Execute(c);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue