summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--controller.cxx10
1 files changed, 4 insertions, 6 deletions
diff --git a/controller.cxx b/controller.cxx
index d007855..8447242 100644
--- a/controller.cxx
+++ b/controller.cxx
@@ -10,13 +10,11 @@
Controller::Controller(QObject* parent) : QObject{parent}
{
#ifdef ANDROID
+ QDir location{QStandardPaths::writableLocation
+ (QStandardPaths::AppDataLocation)};
+ QString path{location.absolutePath() % "/ca-certificates.crt"};
QFile file{"assets:/certs/ca-certificates.crt"};
- file.copy(QDir{QStandardPaths::writableLocation
- (QStandardPaths::AppDataLocation)}.absolutePath()
- % "/ca-certificates.crt");
- auto path = QDir{QStandardPaths::writableLocation
- (QStandardPaths::AppDataLocation)}.absolutePath()
- % "/ca-certificates.crt";
+ file.copy(path);
auto client = new RTClient::Client{"https://darapsa.co.id/rt"
, path.toLatin1().constData()};
#else