diff options
author | Umang Jain <email@uajain.com> | 2020-04-30 16:00:02 +0000 |
---|---|---|
committer | Laurent Pinchart <laurent.pinchart@ideasonboard.com> | 2020-04-30 19:05:46 +0300 |
commit | f703aa0600b8160653a226acf396b8a7ee1f043f (patch) | |
tree | d34f95af0611e9faaf17fa6d64404485832c94dd /src/qcam | |
parent | e5716bebb365c7c744ab1c3a9609b155ed48a251 (diff) |
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>
Diffstat (limited to 'src/qcam')
-rw-r--r-- | src/qcam/main_window.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/qcam/main_window.cpp b/src/qcam/main_window.cpp index c95d0973..5a2ac699 100644 --- a/src/qcam/main_window.cpp +++ b/src/qcam/main_window.cpp @@ -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; } |