This commit is contained in:
Klaus Basan
2019-09-10 22:35:57 +02:00
committed by Mat Sutcliffe
parent c7b90ae439
commit 19c9a51c38
11 changed files with 24 additions and 25 deletions

View File

@@ -126,7 +126,7 @@ namespace BlackGui
if (sGui && sGui->supportsContexts() && sGui->getIContextSimulator())
{
const CSimulatorPluginInfo pluginInfo = sGui->getIContextSimulator()->getSimulatorPluginInfo();
if (!this->isSingleSelection()) { this->setMode(RadioButtons); }
if (!this->isSingleSelection()) { this->setMode(RadioButtons); } // only one sim can be connected
if (pluginInfo.isValid())
{
@@ -319,12 +319,14 @@ namespace BlackGui
if (this->isSingleSelection())
{
// single
m_currentSimulator.set(this->getValue());
const CSimulatorInfo sim = this->getValue();
m_currentSimulator.set(sim);
}
else
{
// multiple
m_currentSimulators.set(this->getValue());
const CSimulatorInfo sim = this->getValue();
m_currentSimulators.set(sim);
}
}