1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-11-06 17:13:49 +01:00

Fix bug in WarningDialog where dismissing via the close box made "don't show again" checkbox always stored as true, because EndModal() was called not via WarningDialog::OnOK() and the return value was 5101. So the prefs file had 5101, which is later read as "true", regardless of the actual setting of the checkbox.

Various other cleanup.
This commit is contained in:
v.audacity
2011-02-01 22:30:10 +00:00
parent dbf7942e1d
commit 39adb7b552
3 changed files with 7 additions and 5 deletions

View File

@@ -50,7 +50,9 @@ BEGIN_EVENT_TABLE(WarningDialog, wxDialog)
END_EVENT_TABLE()
WarningDialog::WarningDialog(wxWindow *parent, wxString message)
: wxDialog(parent, wxID_ANY, (wxString)_("Warning"))
: wxDialog(parent, wxID_ANY, (wxString)_("Warning"),
wxDefaultPosition, wxDefaultSize,
wxCAPTION | wxSYSTEM_MENU) // Unlike wxDEFAULT_DIALOG_STYLE, no wxCLOSE_BOX.
{
ShuttleGui S(this, eIsCreating);