From d706c85d87d431c8a5f64aa29d8655dd248bf191 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Thu, 4 Jun 2015 18:37:59 +0200 Subject: [PATCH] refs #438, do not change comboxbox from backend. Use a field to display the really selected driver and let the user choice unchanged works best for me --- src/blackgui/components/infobarstatuscomponent.cpp | 1 + src/blackgui/components/settingssimulatorcomponent.cpp | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/blackgui/components/infobarstatuscomponent.cpp b/src/blackgui/components/infobarstatuscomponent.cpp index 37f1efa9a..18a642e47 100644 --- a/src/blackgui/components/infobarstatuscomponent.cpp +++ b/src/blackgui/components/infobarstatuscomponent.cpp @@ -108,6 +108,7 @@ namespace BlackGui QString s( getIContextSimulator()->getSimulatorPluginInfo().getDescription() + ": " + ISimulator::statusToString(status)); + // at least connected if (status & ISimulator::Paused) { diff --git a/src/blackgui/components/settingssimulatorcomponent.cpp b/src/blackgui/components/settingssimulatorcomponent.cpp index becf86a31..11f4f8e83 100644 --- a/src/blackgui/components/settingssimulatorcomponent.cpp +++ b/src/blackgui/components/settingssimulatorcomponent.cpp @@ -254,8 +254,8 @@ namespace BlackGui // disable / enable driver specific GUI parts bool hasFsxDriver = this->getIContextSimulator()->getAvailableSimulatorPlugins().supportsSimulator(QStringLiteral("fsx")); - // combobox - setCurrentPluginInComboBox(info); + // I intentionally to not set the selected plugin combobox here + // as this would cause undesired rountrips // other GUI values if (!info.isUnspecified())