KIDIALOG should ignore "cancel" for the do not show again option.

Fix #3734
This commit is contained in:
Mark Roszko 2020-01-07 19:50:59 -05:00 committed by Ian McInerney
parent e42788a3eb
commit a80b2b7e39
1 changed files with 3 additions and 3 deletions

View File

@ -84,8 +84,8 @@ bool KIDIALOG::Show( bool aShow )
bool ret = wxRichMessageDialog::Show( aShow );
// Has the user asked not to show the dialog again
if( IsCheckBoxChecked() )
// Has the user asked not to show the dialog again and it was confirmed
if( IsCheckBoxChecked() && ret != wxID_CANCEL )
doNotShowAgainDlgs[m_hash] = ret;
return ret;
@ -103,7 +103,7 @@ int KIDIALOG::ShowModal()
int ret = wxRichMessageDialog::ShowModal();
// Has the user asked not to show the dialog again
if( IsCheckBoxChecked() )
if( IsCheckBoxChecked() && ret != wxID_CANCEL )
doNotShowAgainDlgs[m_hash] = ret;
return ret;