diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-10-01 16:00:30 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-10-01 21:32:27 +0100 |
| commit | 85fa5c482d005ea8b53d3dce54a8f15b237deb14 (patch) | |
| tree | 891cc16831a0b5c84bc574ce253f0ff59a6cc08d /src/wx/screen_dialog.cc | |
| parent | 765f90586c498860aa687e2b0cd6cedf1e0b1bf0 (diff) | |
Explicit casts optional to bool.
Diffstat (limited to 'src/wx/screen_dialog.cc')
| -rw-r--r-- | src/wx/screen_dialog.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/screen_dialog.cc b/src/wx/screen_dialog.cc index 66e37a4cf..13dd9f42f 100644 --- a/src/wx/screen_dialog.cc +++ b/src/wx/screen_dialog.cc @@ -130,7 +130,7 @@ ScreenDialog::setup_sensitivity () { wxButton* ok = dynamic_cast<wxButton*> (FindWindowById (wxID_OK, this)); if (ok) { - ok->Enable (_certificate); + ok->Enable (static_cast<bool>(_certificate)); } _download_certificate->Enable ( |
