mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-09 12:29:44 +00:00
Qr scanner: close dialog on no available cameras
This commit is contained in:
parent
b7cf9f98aa
commit
ae5ff35cc3
1 changed files with 1 additions and 0 deletions
|
@ -22,6 +22,7 @@ QrCodeScanDialog::QrCodeScanDialog(QWidget *parent)
|
||||||
if (m_cameras.count() < 1) {
|
if (m_cameras.count() < 1) {
|
||||||
QMessageBox::warning(parent, "QR code scanner", "No available cameras found.");
|
QMessageBox::warning(parent, "QR code scanner", "No available cameras found.");
|
||||||
this->close();
|
this->close();
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const auto &camera : m_cameras) {
|
for (const auto &camera : m_cameras) {
|
||||||
|
|
Loading…
Reference in a new issue