From f803854da3e1b282d3fa9e2a1c359d1c250032d3 Mon Sep 17 00:00:00 2001 From: Jan Grewe Date: Wed, 13 Mar 2024 09:19:23 +0100 Subject: [PATCH] disable mode selection if selection was done --- camconfig.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/camconfig.cpp b/camconfig.cpp index ef72240..a0cda0e 100644 --- a/camconfig.cpp +++ b/camconfig.cpp @@ -86,6 +86,7 @@ void CamConfigurator::modeChanged(int idx) { stack->setCurrentIndex(1); QString device = device_combo->currentText(); preview->setPrimaryCamera(device); + mode_combo->setEnabled(false); } else if (idx == 2) { qDebug() << "Mode changed to dual camera mode"; preview = stereoCameraView(); @@ -100,6 +101,7 @@ void CamConfigurator::modeChanged(int idx) { } QString device2 = device_combo->itemText(1 - i); preview->setSecondaryCamera(device2); + mode_combo->setEnabled(false); } else { qDebug() << "Mode changed mode selection"; stack->setCurrentIndex(0);