refs #273, fixed changed detection

This commit is contained in:
Klaus Basan
2014-06-28 01:56:58 +02:00
parent 4c14737d60
commit 25122fad10
2 changed files with 4 additions and 2 deletions

View File

@@ -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;
} }

View File

@@ -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;
} }