Explicit casts optional to bool.
[dcpomatic.git] / src / wx / screen_dialog.cc
index 66e37a4cf94d58225b199fa8a88cef93fe19de22..13dd9f42fbdba4cdc5d49f86a39637a60ac796b9 100644 (file)
@@ -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 (