forked from Ivasoft/DSView
fix: Have used a MsgBox pointer from stack
This commit is contained in:
@@ -411,11 +411,15 @@ namespace pv
|
||||
break;
|
||||
}
|
||||
|
||||
dialogs::DSMessageBox *box = NULL;
|
||||
MsgBox::Show("", title, details, this, &box, true);
|
||||
// auto evo = _session->device_event_object();
|
||||
//connect(evo, SIGNAL(device_updated()), box, SLOT(accept()));
|
||||
// box->exec();
|
||||
pv::dialogs::DSMessageBox msg(this, title);
|
||||
msg.mBox()->setText(details);
|
||||
msg.mBox()->setStandardButtons(QMessageBox::Ok);
|
||||
msg.mBox()->setIcon(QMessageBox::Warning);
|
||||
connect(_session->device_event_object(), SIGNAL(device_updated()), &msg, SLOT(accept()));
|
||||
_msg = &msg;
|
||||
msg.exec();
|
||||
_msg = NULL;
|
||||
|
||||
_session->clear_error();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user