Commit 9f246359 authored by Christoffer Ackelman's avatar Christoffer Ackelman

Fixed error when closing several open wtt widgets.

parent 4f1a759a
......@@ -497,8 +497,6 @@ int Wb::vsel_success(void* vselctx, pwr_tVolumeId* volumelist, int volume_count)
int sts;
pwr_tStatus status;
wb->appl_count--;
sts = 1;
if (CoLogin::privilege() & pwr_mPrv_DevRead) {
for (i = 0; i < volume_count; i++) {
......
......@@ -62,6 +62,9 @@ static void vsel_exit_qb_yes(void* ctx, void* cbdata)
{
WVselQt* vsel = (WVselQt*)ctx;
if (vsel->vsel_bc_cancel != NULL) {
(vsel->vsel_bc_cancel)();
}
vsel->toplevel->close();
}
......@@ -96,6 +99,9 @@ void WVselQtWidget::activate_ok()
free((char*)volume_ptr);
if (ODD(sts)) {
if (sel->vsel_bc_cancel != NULL) {
(sel->vsel_bc_cancel)();
}
close();
} else if (sts == LDH__VOLALRATT || LDH__VOLIDALREXI) {
sel->wow->DisplayError("Error", "Volume is already open");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment