annotate: remove dead code

Never gets called as we will always have a message.
This commit is contained in:
Mike Williams 2024-05-22 10:01:20 -04:00
parent 39f355e71d
commit 8d8fa155f7
1 changed files with 1 additions and 14 deletions

View File

@ -225,20 +225,7 @@ void DIALOG_ANNOTATE::OnApplyClick( wxCommandEvent& event )
commit.Push( _( "Annotate" ) );
m_MessageWindow->Flush( true ); // Now update to show all messages
m_sdbSizer1Cancel->SetDefault();
// Don't close dialog if there are things the user needs to address
if( reporter.HasMessage() )
return;
if( m_infoBar->IsShown() )
{
// Close the dialog by calling the default handler for a wxID_OK event
event.SetId( wxID_OK );
event.Skip();
}
m_MessageWindow->Flush( true ); // Now update to show all messages
}