Implemented NetworkCookieJar::clearCookiesSetting()
[situare] / src / facebookservice / facebookauthentication.cpp
index 2553cd5..2bd36e5 100644 (file)
@@ -36,6 +36,7 @@
 
 #include "common.h"
 #include "error.h"
+#include "network/networkcookiejar.h"
 #include "situareservice/situarecommon.h"
 #include "ui/facebookloginbrowser.h"
 
@@ -65,16 +66,17 @@ void FacebookAuthentication::clearAccountInformation(bool keepUsername)
     qDebug() << __PRETTY_FUNCTION__;
 
     ///< @todo (HIGH) clear session from SituareService
-    QSettings settings(DIRECTORY_NAME, FILE_NAME);
+    QSettings settings(SETTINGS_ORGANIZATION_NAME, SETTINGS_APPLICATION_NAME);
 
     if(!keepUsername) {
         settings.remove(SETTINGS_AUTOMATIC_UPDATE_ENABLED);
         settings.remove(SETTINGS_AUTOMATIC_UPDATE_INTERVAL);
     }
 
-    settings.remove(COOKIES);
     settings.remove(USER_UNSEND_MESSAGE);
     settings.remove(USER_UNSEND_MESSAGE_PUBLISH);
+
+    NetworkCookieJar::clearCookiesSetting();
 }
 
 void FacebookAuthentication::loadFinished(bool ok)