summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-05 14:44:56 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-07-05 14:44:56 +0800
commit2975cd0c6c5fb174e2c707415e7c193800fd1c73 (patch)
tree6928a39aa6284dd2eb1e181cb3bdbc360f92762c
parent26aefb8d8813e23ba1bfae5fe891bd453f6159c6 (diff)
Fix: Registration on Android crashes
The path variable needs to be stored a copy, not just a reference, for the lambda.
-rw-r--r--controller.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/controller.cxx b/controller.cxx
index 2e95c09..e70a66d 100644
--- a/controller.cxx
+++ b/controller.cxx
@@ -29,7 +29,7 @@ Controller::Controller(QObject* parent) :
connect(window, SIGNAL(signUp(QString)), this, SIGNAL(signUp(QString)));
connect(this, &Controller::signUp, [/*this,*/
#ifdef __ANDROID__
- &path
+ path
#endif
](QString const& brand) {
sign_up(brand.toLatin1().constData(),