mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 04:45:31 +08:00
refs #273, fixed changed detection
This commit is contained in:
@@ -191,7 +191,8 @@ namespace BlackMisc
|
|||||||
if (command == CSettingUtilities::CmdUpdate())
|
if (command == CSettingUtilities::CmdUpdate())
|
||||||
{
|
{
|
||||||
QString v = value.toString();
|
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;
|
this->m_bookingServiceUrl = v;
|
||||||
return msgs;
|
return msgs;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -149,7 +149,8 @@ namespace BlackSim
|
|||||||
if (command == CSettingUtilities::CmdUpdate())
|
if (command == CSettingUtilities::CmdUpdate())
|
||||||
{
|
{
|
||||||
CSimulatorInfo v = value.value<CSimulatorInfo>();
|
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;
|
this->m_selectedDriver = v;
|
||||||
return msgs;
|
return msgs;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user