Qt: workaround for crash in long accepted slot

This commit is contained in:
Megamouse 2025-01-03 19:05:06 +01:00
parent 4f76aec6b3
commit 8ea27b0aca

View File

@ -405,7 +405,7 @@ void main_window::OnMissingFw()
connect(mb, &QDialog::accepted, this, [this]()
{
InstallPup();
QTimer::singleShot(1, [this](){ InstallPup(); }); // singleShot to avoid a Qt bug that causes a deletion of the sender during long slots.
});
}