X-Git-Url: http://Server1/repobrowser/?a=blobdiff_plain;f=source%2FfrmEditAccount.cpp;h=488362589f5fc393029faa5296e255c989195240;hb=7463b9071a5aa395e59737cbdfd3445832ff016c;hp=18e5591d144d6f92b630d6fb8bb552934642ee0c;hpb=c211ec34be19d63ae6b3bc05051e918eb05ff42d;p=xestiaab%2F.git diff --git a/source/frmEditAccount.cpp b/source/frmEditAccount.cpp index 18e5591..4883625 100644 --- a/source/frmEditAccount.cpp +++ b/source/frmEditAccount.cpp @@ -19,6 +19,7 @@ #include "frmEditAccount.h" #include "frmInvalidSSLCertificate.h" #include "carddav/carddav.h" +#include "common/svrblist.h" frmEditAccount::frmEditAccount( wxWindow* parent ) : @@ -221,6 +222,19 @@ void frmEditAccount::LoadSettings( wxString AccNameIn ){ void frmEditAccount::UpdateSettings( wxCommandEvent& event ) { + // Check if server address matches against the blacklist. + // Bring up warning message if it does. + + if (CheckBlacklist(txtAddress->GetValue())){ + + int MessageBoxResult = wxMessageBox(_("The server with the address given does not support the CardDAV protocol properly and shouldn't be used.\n\nData loss is very likely.\n\nDo you still want to continue using this server?"), _("Server warning"), wxYES_NO, this); + + if (MessageBoxResult == wxNO){ + return; + } + + } + // Update the settings for the account. long itemindex = 0;