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
This commit is contained in:
Klaus Basan
2015-06-04 18:37:59 +02:00
parent dbce887946
commit d706c85d87
2 changed files with 3 additions and 2 deletions

View File

@@ -108,6 +108,7 @@ namespace BlackGui
QString s( QString s(
getIContextSimulator()->getSimulatorPluginInfo().getDescription() + ": " + getIContextSimulator()->getSimulatorPluginInfo().getDescription() + ": " +
ISimulator::statusToString(status)); ISimulator::statusToString(status));
// at least connected // at least connected
if (status & ISimulator::Paused) if (status & ISimulator::Paused)
{ {

View File

@@ -254,8 +254,8 @@ namespace BlackGui
// disable / enable driver specific GUI parts // disable / enable driver specific GUI parts
bool hasFsxDriver = this->getIContextSimulator()->getAvailableSimulatorPlugins().supportsSimulator(QStringLiteral("fsx")); bool hasFsxDriver = this->getIContextSimulator()->getAvailableSimulatorPlugins().supportsSimulator(QStringLiteral("fsx"));
// combobox // I intentionally to not set the selected plugin combobox here
setCurrentPluginInComboBox(info); // as this would cause undesired rountrips
// other GUI values // other GUI values
if (!info.isUnspecified()) if (!info.isUnspecified())