KIDIALOG should ignore "cancel" for the do not show again option.
Fix #3734
This commit is contained in:
parent
e42788a3eb
commit
a80b2b7e39
|
@ -84,8 +84,8 @@ bool KIDIALOG::Show( bool aShow )
|
||||||
|
|
||||||
bool ret = wxRichMessageDialog::Show( aShow );
|
bool ret = wxRichMessageDialog::Show( aShow );
|
||||||
|
|
||||||
// Has the user asked not to show the dialog again
|
// Has the user asked not to show the dialog again and it was confirmed
|
||||||
if( IsCheckBoxChecked() )
|
if( IsCheckBoxChecked() && ret != wxID_CANCEL )
|
||||||
doNotShowAgainDlgs[m_hash] = ret;
|
doNotShowAgainDlgs[m_hash] = ret;
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -103,7 +103,7 @@ int KIDIALOG::ShowModal()
|
||||||
int ret = wxRichMessageDialog::ShowModal();
|
int ret = wxRichMessageDialog::ShowModal();
|
||||||
|
|
||||||
// Has the user asked not to show the dialog again
|
// Has the user asked not to show the dialog again
|
||||||
if( IsCheckBoxChecked() )
|
if( IsCheckBoxChecked() && ret != wxID_CANCEL )
|
||||||
doNotShowAgainDlgs[m_hash] = ret;
|
doNotShowAgainDlgs[m_hash] = ret;
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
|
Loading…
Reference in New Issue