From 74208ea5d110530cb1fea6e724d85bb8685a896b Mon Sep 17 00:00:00 2001 From: Kieran Bingham Date: Fri, 25 Oct 2019 11:30:00 +0100 Subject: qcam: Don't ask for a camera when only one exists If there is only one camera exposed by libcamera, there is little value in asking the user to choose it. Automatically select it, and remove the need to ask the user to select 'ok' from a Dialog box. Reviewed-by: Laurent Pinchart Tested-by: Laurent Pinchart Signed-off-by: Kieran Bingham --- src/qcam/main_window.h | 1 + 1 file changed, 1 insertion(+) (limited to 'src/qcam/main_window.h') diff --git a/src/qcam/main_window.h b/src/qcam/main_window.h index 6873155a..30dd8743 100644 --- a/src/qcam/main_window.h +++ b/src/qcam/main_window.h @@ -43,6 +43,7 @@ private Q_SLOTS: void updateTitle(); private: + std::string chooseCamera(CameraManager *cm); int openCamera(CameraManager *cm); int startCapture(); -- cgit v1.2.1