mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-30 20:15:35 +08:00
refs #273, fixed changed detection
This commit is contained in:
@@ -191,7 +191,8 @@ namespace BlackMisc
|
||||
if (command == CSettingUtilities::CmdUpdate())
|
||||
{
|
||||
QString v = value.toString();
|
||||
msgs.push_back(CSettingUtilities::valueChangedMessage(v != this->m_bookingServiceUrl, "booking URL"));
|
||||
changedFlag = (v != this->m_bookingServiceUrl);
|
||||
msgs.push_back(CSettingUtilities::valueChangedMessage(changedFlag, "booking URL"));
|
||||
this->m_bookingServiceUrl = v;
|
||||
return msgs;
|
||||
}
|
||||
|
||||
@@ -149,7 +149,8 @@ namespace BlackSim
|
||||
if (command == CSettingUtilities::CmdUpdate())
|
||||
{
|
||||
CSimulatorInfo v = value.value<CSimulatorInfo>();
|
||||
msgs.push_back(CSettingUtilities::valueChangedMessage(v != this->m_selectedDriver, "selected driver"));
|
||||
changedFlag = (v != this->m_selectedDriver);
|
||||
msgs.push_back(CSettingUtilities::valueChangedMessage(changedFlag, "selected driver"));
|
||||
this->m_selectedDriver = v;
|
||||
return msgs;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user