summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.cpp
diff options
context:
space:
mode:
authorGravatar Berthold Stoeger <bstoeger@mail.tuwien.ac.at>2020-02-04 14:09:12 +0100
committerGravatar bstoeger <32835590+bstoeger@users.noreply.github.com>2020-02-04 16:24:29 +0100
commit5e0ce206a0cb88754b27cf8d7b9d65773f87cd07 (patch)
treef7e781aa5741ebf0987caf47d588637aa34b2b73 /mobile-widgets/qmlmanager.cpp
parent35de9c49a4f2c2ab5abc3f52e8d005c0d1225971 (diff)
downloadsubsurface-5e0ce206a0cb88754b27cf8d7b9d65773f87cd07.tar.gz
Cleanup: remove capture-all lambda clauses
These were forgotten the last time. Signed-off-by: Berthold Stoeger <bstoeger@mail.tuwien.ac.at>
Diffstat (limited to 'mobile-widgets/qmlmanager.cpp')
-rw-r--r--mobile-widgets/qmlmanager.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/mobile-widgets/qmlmanager.cpp b/mobile-widgets/qmlmanager.cpp
index a1e092289..456d9c603 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -1859,7 +1859,7 @@ void QMLManager::writeToAppLogFile(QString logText)
void QMLManager::setStatusbarColor(QColor color)
{
- QtAndroid::runOnAndroidThread([=]() {
+ QtAndroid::runOnAndroidThread([color]() {
QAndroidJniObject window = QtAndroid::androidActivity().callObjectMethod("getWindow", "()Landroid/view/Window;");
window.callMethod<void>("addFlags", "(I)V", FLAG_DRAWS_SYSTEM_BAR_BACKGROUNDS);
window.callMethod<void>("clearFlags", "(I)V", FLAG_TRANSLUCENT_STATUS);
@@ -2094,7 +2094,7 @@ void QMLManager::setFilter(const QString filterText)
// show that we are doing something, then do something in another thread in order not to block the UI
QMetaObject::invokeMethod(qmlWindow, "showBusyAndDisconnectModel");
QtConcurrent::run(QThreadPool::globalInstance(),
- [=]{
+ [this,filterText]{
DiveListSortModel::instance()->setFilter(filterText);
CollapsedDiveListSortModel::instance()->updateFilterState();
QMetaObject::invokeMethod(qmlWindow, "hideBusyAndConnectModel");