summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qmlmanager.cpp
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-24 18:51:46 -0400
committerGravatar Dirk Hohndel <dirk@hohndel.org>2019-10-26 11:38:26 -0700
commit84920fd65766f52867087ace32ac002793731096 (patch)
tree379738026c57cc786039b016c97659f2ef785a7c /mobile-widgets/qmlmanager.cpp
parentbf6a644fc63a0eb9ae74ce55d31777ae7290056b (diff)
downloadsubsurface-84920fd65766f52867087ace32ac002793731096.tar.gz
Mobile: change show/hide busy functions
The old code was ill named - this way the busy spinner itself becomes reusable with a reasonable set of function names. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
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 b69783e95..cefeee365 100644
--- a/mobile-widgets/qmlmanager.cpp
+++ b/mobile-widgets/qmlmanager.cpp
@@ -2077,11 +2077,11 @@ void QMLManager::showDownloadPage(QString deviceString)
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, "showBusy");
+ QMetaObject::invokeMethod(qmlWindow, "showBusyAndDisconnectModel");
QtConcurrent::run(QThreadPool::globalInstance(),
[=]{
DiveListSortModel::instance()->setFilter(filterText);
- QMetaObject::invokeMethod(qmlWindow, "hideBusy");
+ QMetaObject::invokeMethod(qmlWindow, "hideBusyAndConnectModel");
});
}