mirror of
https://github.com/wownero/wowlet.git
synced 2026-10-20 00:28:39 +02:00
Qr scanner: close dialog on no available cameras
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user