Fix crash if canceling load of other project

This commit is contained in:
Ilari Liusvaara 2014-11-11 18:54:02 +02:00
parent 212d554ad1
commit c330c9c42a

View file

@ -44,7 +44,7 @@ void projects_menu::on_select(wxCommandEvent& e)
wxT("Load project"), b.size(), &b[0]);
if(d2->ShowModal() == wxID_CANCEL) {
d2->Destroy();
throw canceled_exception();
return;
}
std::string _id = a[d2->GetSelection()];
selected_cb(_id);