From b1f99f0004ad0f40ba427a63dfbcc6fa66afe8a4 Mon Sep 17 00:00:00 2001 From: Jonathan Naylor Date: Sun, 28 Apr 2019 18:10:25 +0100 Subject: [PATCH] Simplify and remove Windows dependancy. --- GUICommon/DCSSet.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/GUICommon/DCSSet.cpp b/GUICommon/DCSSet.cpp index 730bfa3..9bc22b2 100644 --- a/GUICommon/DCSSet.cpp +++ b/GUICommon/DCSSet.cpp @@ -21,7 +21,6 @@ #include "Defs.h" #include -#include const unsigned int CONTROL_WIDTH = 130U; @@ -114,8 +113,7 @@ bool CDCSSet::Validate() bool ccsHostSelected = m_ccsHosts->GetCurrentSelection() != wxNOT_FOUND; if (ccsEnabled && !ccsHostSelected) { - wxMessageDialog dialog(this, _("CCS is enabled and no CCS host has been selected. Either disable CCS or select a CCS host."), m_title + _(" Error"), wxICON_ERROR); - dialog.ShowModal(); + wxMessageBox(_("CCS is enabled and no CCS host has been selected. Either disable CCS or select a CCS host.")); return false; }