summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJan Moeller <Jan.Moeller@governikus.de>2023-08-30 11:13:54 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2023-09-12 09:54:18 +0000
commit6d6f03dc9628091aa4e29e5b121dec36ab0d389d (patch)
treeab812f09856b6d45a83b9c0d72260768d719c95b /src
parent5e9aafb62341d0c7475bfe57e47abdd147721564 (diff)
Allow to set user information after detection started for non NDEF tags
Prior to the NDEF implementation one could change the user information after the target detection started. The limitation seems to only effect NDEF tags, so all other tags should still be able to set the information at a later time. This allows to inform the user about the current progress of the process or inform about errors. Fixes: QTBUG-116563 Pick-to: 6.5 Change-Id: If82ea8c2056eb4c425626b06dac98462e3f0070c Reviewed-by: Lars Schmertmann <lars.schmertmann@governikus.de> Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io> (cherry picked from commit 76e0b4687ced7e3e54a60c674c9432a3161ce834) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'src')
-rw-r--r--src/nfc/qnearfieldmanager_ios.mm8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/nfc/qnearfieldmanager_ios.mm b/src/nfc/qnearfieldmanager_ios.mm
index fd9de125..2709e2c7 100644
--- a/src/nfc/qnearfieldmanager_ios.mm
+++ b/src/nfc/qnearfieldmanager_ios.mm
@@ -212,14 +212,16 @@ void QNearFieldManagerPrivateImpl::clearTargets()
void QNearFieldManagerPrivateImpl::setUserInformation(const QString &message)
{
+ if (activeAccessMethod != QNearFieldTarget::NdefAccess)
+ [delegate alertMessage:message];
+
if (detectionRunning) {
// Too late!
- qCWarning(QT_IOS_NFC, "User information must be set prior before the targer detection started");
+ qCWarning(QT_IOS_NFC,
+ "User information must be set prior before the target detection started");
return;
}
- [delegate alertMessage:message];
-
if (auto queue = qt_Nfc_Queue()) {
dispatch_sync(queue, ^{
[ndefDelegate setAlertMessage:message];