Merge pull request #525

9c0002a fix undefined buildwithscanner (Jaquee)
This commit is contained in:
Riccardo Spagni 2017-03-03 16:28:49 +02:00
commit 18eb7a02cc
No known key found for this signature in database
GPG Key ID: 55432DF31CCD4FCD

View File

@ -65,7 +65,7 @@ ApplicationWindow {
property bool viewOnly: false
property bool foundNewBlock: false
property int timeToUnlock: 0
property bool qrScannerEnabled: builtWithScanner && (QtMultimedia.availableCameras.length > 0)
property bool qrScannerEnabled: (typeof builtWithScanner != "undefined") && builtWithScanner && (QtMultimedia.availableCameras.length > 0)
property int blocksToSync: 1
property var isMobile: (appWindow.width > 700) ? false : true