From 7b43a94055587c0da3be80fd35468ef5c498ad89 Mon Sep 17 00:00:00 2001 From: Jonas Kvinge Date: Wed, 12 Jun 2024 17:40:08 +0200 Subject: [PATCH] CollectionBackend: Use static `QMetaObject::invokeMethod` --- src/collection/collectionbackend.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/collection/collectionbackend.cpp b/src/collection/collectionbackend.cpp index e0e0137d..90a3293c 100644 --- a/src/collection/collectionbackend.cpp +++ b/src/collection/collectionbackend.cpp @@ -121,7 +121,7 @@ void CollectionBackend::ReportErrors(const CollectionQuery &query) { } void CollectionBackend::GetAllSongsAsync(const int id) { - metaObject()->invokeMethod(this, "GetAllSongs", Qt::QueuedConnection, Q_ARG(int, id)); + QMetaObject::invokeMethod(this, "GetAllSongs", Qt::QueuedConnection, Q_ARG(int, id)); } void CollectionBackend::GetAllSongs(const int id) {