Skip to content

Commit

Permalink
Use EndModal() for newer wxWindows
Browse files Browse the repository at this point in the history
  • Loading branch information
saper committed Nov 28, 2023
1 parent 4efd832 commit d690c4d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions TAO/utils/wxNamingViewer/wxViewIORDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -214,15 +214,24 @@ void WxViewIORDialog::decodeIOR()
} catch (const CORBA::Exception& ex) {
wxMessageBox( ex._info().c_str(), "CORBA::Exception");
}

}
profiles->Expand( rootItem);
}


void WxViewIORDialog::OnApply( wxCommandEvent& event)
#if defined(ANCIENT_WX_WINDOWS)
#define ONLY_ANCIENT_WX_USES(x) (x)
#else
#define ONLY_ANCIENT_WX_USES(x) WXUNUSED(x)
#endif

void WxViewIORDialog::OnApply( wxCommandEvent& ONLY_ANCIENT_WX_USES(event))
{
#if defined(ANCIENT_WX_WINDOWS)
wxDialog::OnApply( event);
#else
wxDialog::EndModal( wxID_APPLY);
#endif
try {
object = orb->string_to_object( ior);
decodeIOR();
Expand Down

0 comments on commit d690c4d

Please sign in to comment.