Skip to content

Commit

Permalink
Account: remove dependency with ConfigFile
Browse files Browse the repository at this point in the history
Part of #6213
  • Loading branch information
ogoffart committed Dec 7, 2017
1 parent 8cd1861 commit 0ad4c85
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion src/cmd/simplesslerrorhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*/
#include "configfile.h"
#include "common/utility.h"
#include "account.h"
#include "simplesslerrorhandler.h"
Expand Down
1 change: 1 addition & 0 deletions src/gui/application.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
#include <QTranslator>
#include <QMenu>
#include <QMessageBox>
#include <QDesktopServices>

class QSocket;

Expand Down
5 changes: 2 additions & 3 deletions src/libsync/account.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include "account.h"
#include "cookiejar.h"
#include "networkjobs.h"
#include "configfile.h"
#include "accessmanager.h"
#include "creds/abstractcredentials.h"
#include "capabilities.h"
Expand All @@ -33,6 +32,7 @@
#include <QDir>
#include <QSslKey>
#include <QAuthenticator>
#include <QStandardPaths>

namespace OCC {

Expand Down Expand Up @@ -206,8 +206,7 @@ void Account::lendCookieJarTo(QNetworkAccessManager *guest)

QString Account::cookieJarPath()
{
ConfigFile cfg;
return cfg.configPath() + "/cookies" + id() + ".db";
return QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + "/cookies" + id() + ".db";
}

void Account::resetNetworkAccessManager()
Expand Down
2 changes: 0 additions & 2 deletions src/libsync/capabilities.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@

#include "capabilities.h"

#include "configfile.h"

#include <QVariantMap>

namespace OCC {
Expand Down

0 comments on commit 0ad4c85

Please sign in to comment.