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,8 +275,9 @@ private void ctxtUpdate_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
if (lstClients.SelectedItems.Count != 0)
|
if (lstClients.SelectedItems.Count != 0)
|
||||||
{
|
{
|
||||||
FrmUpdate frmU = new FrmUpdate(lstClients.SelectedItems.Count);
|
using (var frm = new FrmUpdate(lstClients.SelectedItems.Count))
|
||||||
if (frmU.ShowDialog() == DialogResult.OK)
|
{
|
||||||
|
if (frm.ShowDialog() == DialogResult.OK)
|
||||||
{
|
{
|
||||||
foreach (ListViewItem lvi in lstClients.SelectedItems)
|
foreach (ListViewItem lvi in lstClients.SelectedItems)
|
||||||
{
|
{
|
||||||
|
@ -286,6 +287,7 @@ private void ctxtUpdate_Click(object sender, EventArgs e)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private void ctxtDisconnect_Click(object sender, EventArgs e)
|
private void ctxtDisconnect_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue