summaryrefslogtreecommitdiff
path: root/controller.cxx
diff options
context:
space:
mode:
authorAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2019-09-24 22:26:07 +0700
committerAnatasof Wirapraja <anatasof.wirapraja@gmail.com>2019-09-24 22:26:07 +0700
commit35fe3c15f3b8a562d866f40389a5a8124501636a (patch)
treede458de864a3c1f025c4c9dbde927d249ebf4294 /controller.cxx
parenta570ecafaa7e1481778a35015776b6de6102da83 (diff)
parentf1251b08ee37f44998d5a20e7bfcce5e9c9e1cb5 (diff)
Merge branch 'master' of ssh://darapsa.co.id/usr/local/git/kelakon into development
* 'master' of ssh://darapsa.co.id/usr/local/git/kelakon: All forms and icons are moved to Larva Update qrtclient Reuse path
Diffstat (limited to 'controller.cxx')
-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