summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndy Shaw <andy.shaw@qt.io>2020-06-18 09:18:46 +0200
committerAndy Shaw <andy.shaw@qt.io>2020-06-18 11:54:20 +0200
commita60f266d415bf128454d4eb1f22542d362c53c31 (patch)
tree58e1b23dcd095ff9a586c11a3ce925ea9cc42a82
parent59b03992ab332a320ac7cff7c5b099b2c30e14b2 (diff)
Android: Only emit the signals once when doing multiple file selection
Change-Id: Ie57908f5e882ef4f85f4199ecb06c09ae5d8ae2a Pick-to: 5.15 Reviewed-by: BogDan Vatra <bogdan@kdab.com>
-rw-r--r--src/plugins/platforms/android/qandroidplatformfiledialoghelper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/platforms/android/qandroidplatformfiledialoghelper.cpp b/src/plugins/platforms/android/qandroidplatformfiledialoghelper.cpp
index 21e0c47909..6bb3372380 100644
--- a/src/plugins/platforms/android/qandroidplatformfiledialoghelper.cpp
+++ b/src/plugins/platforms/android/qandroidplatformfiledialoghelper.cpp
@@ -94,9 +94,9 @@ bool QAndroidPlatformFileDialogHelper::handleActivityResult(jint requestCode, ji
QJNIObjectPrivate itemUri = item.callObjectMethod("getUri", "()Landroid/net/Uri;");
takePersistableUriPermission(itemUri);
m_selectedFile.append(itemUri.toString());
- Q_EMIT filesSelected(m_selectedFile);
- Q_EMIT accept();
}
+ Q_EMIT filesSelected(m_selectedFile);
+ Q_EMIT accept();
}
return true;