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>
This commit is contained in:
parent
59b03992ab
commit
a60f266d41
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user