refs #745, get temp. livery from web services

This commit is contained in:
Klaus Basan
2016-08-26 23:03:58 +02:00
parent a98441c315
commit f506d780b9
3 changed files with 11 additions and 1 deletions

View File

@@ -199,7 +199,7 @@ namespace BlackGui
void CLiveryForm::ps_setTemporaryLivery()
{
if (!sGui || !sGui->hasWebDataServices()) { return; }
const CLivery l = sGui->getWebDataServices()->getLiveryForCombinedCode(CLivery::tempLiveryCode());
const CLivery l = sGui->getWebDataServices()->getTempLiveryOrDefault();
if (l.isLoadedFromDb())
{
this->setValue(l);