KIDIALOG should ignore "cancel" for the do not show again option.
Fix #3734
This commit is contained in:
parent
43a5c38950
commit
3ae784d97f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue