mirror of
https://git.libcamera.org/libcamera/libcamera.git
synced 2025-07-21 03:15:06 +03:00
qcam: main_window: Fix combo-box entry selection on startup
When one of the camera is selected and opened from the "Select Cameras" items list, the entry of the combo-box in the main-window doesn't update its item index to reflect the camera which was earlier selected. Fix that. Signed-off-by: Umang Jain <email@uajain.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Tested-by: Kieran Bingham <kieran.bingham@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
e5716bebb3
commit
f703aa0600
1 changed files with 3 additions and 0 deletions
|
@ -250,6 +250,9 @@ int MainWindow::openCamera()
|
|||
return -EBUSY;
|
||||
}
|
||||
|
||||
/* Set the combo-box entry with the currently selected Camera. */
|
||||
cameraCombo_->setCurrentText(QString::fromStdString(cameraName));
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue