mirror of
https://github.com/feather-wallet/feather.git
synced 2025-01-08 20:09:43 +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) {
|
||||
QMessageBox::warning(parent, "QR code scanner", "No available cameras found.");
|
||||
this->close();
|
||||
return;
|
||||
}
|
||||
|
||||
for (const auto &camera : m_cameras) {
|
||||
|
|
Loading…
Reference in a new issue