aboutsummaryrefslogtreecommitdiff
path: root/accounts.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'accounts.cpp')
-rw-r--r--accounts.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/accounts.cpp b/accounts.cpp
index f1486b5..3662dcc 100644
--- a/accounts.cpp
+++ b/accounts.cpp
@@ -1,11 +1,13 @@
#include <QFile>
+#include <QStandardPaths>
#include "accounts.h"
DcAccounts::DcAccounts(QObject *parent)
: QObject(parent)
{
- m_accounts = dc_accounts_new("Qt", "./deltachat-data");
+ QString path = QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation) + "/db";
+ m_accounts = dc_accounts_new("Qt", path.toUtf8().constData());
}
DcAccounts::~DcAccounts()