don't run the thread if its creation failed

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31643 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2005-01-29 20:49:14 +00:00
parent d9af087c42
commit 5ac52b5da0

View File

@ -726,6 +726,7 @@ void MyFrame::OnStartWorker(wxCommandEvent& WXUNUSED(event))
if ( thread->Create() != wxTHREAD_NO_ERROR )
{
wxLogError(wxT("Can't create thread!"));
return;
}
m_dlgProgress = new wxProgressDialog