Veto window closure during scanner discovery in the background.

This commit is contained in:
Saleem Edah-Tally
2025-07-13 20:24:50 +02:00
parent 0f286efe4c
commit c10aac922d
6 changed files with 46 additions and 7 deletions

View File

@@ -311,7 +311,10 @@ wxThread::ExitCode BackgroundScannerDiscovery::Entry()
evt.SetShow ( true );
m_owner->OnActivated ( evt );
if (m_evh)
{
m_evh->OnDone();
wxDELETE(m_evh);
}
}
return ( wxThread::ExitCode ) 0;
}
@@ -321,3 +324,5 @@ wxThread::ExitCode BackgroundScannerDiscovery::Entry()
void BackgroundScannerDiscoveryEvent::OnDone()
{}
BackgroundScannerDiscoveryEvent::~BackgroundScannerDiscoveryEvent() = default;