Home | News | Projects | Releases
Bugs | RFE | Repositories | Help
Fixed code for checking if a CalDAVConnectionData object is valid.
authorSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 28 Feb 2016 23:47:15 +0000 (23:47 +0000)
committerSteve Brokenshire <sbrokenshire@xestia.co.uk>
Sun, 28 Feb 2016 23:47:15 +0000 (23:47 +0000)
source/objects/CalDAV/CalDAV.cpp

index 6a5c70b..0e39c7e 100644 (file)
@@ -32,7 +32,7 @@ bool CalDAVObjectValidSettings(CalDAVConnectionData *ConnData){
        // Check the server hostname. Return false
        // if no value has been set.
        
-       if (ConnData->Hostname.size() > 0){
+       if (ConnData->Hostname.size() == 0){
        
                return false;
        
@@ -50,16 +50,20 @@ bool CalDAVObjectValidSettings(CalDAVConnectionData *ConnData){
        
        // Check the server username. Return false
        // if no value has been set.
-
-       if (ConnData->Username.size() > 0){
+       
+       if (ConnData->Username.size() == 0){
+               
                return false;
-       }
-
+               
+       }       
+       
        // Check the server password. Return false
        // if no value has been set.
-
-       if (ConnData->Password.size() > 0){
+       
+       if (ConnData->Password.size() == 0){
+               
                return false;
+               
        }
 
        // Cannot check UseSSL: It is either true
Xestia Software Development
Yn Maystri
© 2006 - 2019 Xestia Software Development
Software

Xestia Address Book
Xestia Calendar
Development

Xestia Gelforn
Everything else

About
News
Privacy Policy