Fixed: Initial image download did not become visible
--HG-- branch : develop
This commit is contained in:
parent
bbfc20c81d
commit
a5aa8e48a5
1 changed files with 8 additions and 3 deletions
|
@ -711,7 +711,6 @@ namespace NLGUI
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: if no image in cache, nothing is visible
|
|
||||||
finalUrl = upgradeInsecureUrl(getAbsoluteUrl(url));
|
finalUrl = upgradeInsecureUrl(getAbsoluteUrl(url));
|
||||||
|
|
||||||
// use requested url for local name (cache)
|
// use requested url for local name (cache)
|
||||||
|
@ -719,9 +718,15 @@ namespace NLGUI
|
||||||
LOG_DL("add to download '%s' dest '%s' img %p", finalUrl.c_str(), dest.c_str(), img);
|
LOG_DL("add to download '%s' dest '%s' img %p", finalUrl.c_str(), dest.c_str(), img);
|
||||||
|
|
||||||
// Display cached image while downloading new
|
// Display cached image while downloading new
|
||||||
if (type != OverImage && CFile::fileExists(dest))
|
if (type != OverImage)
|
||||||
{
|
{
|
||||||
setImage(img, dest, type);
|
std::string temp = dest;
|
||||||
|
if (!CFile::fileExists(temp))
|
||||||
|
{
|
||||||
|
// TODO: placeholder
|
||||||
|
temp = "web_del.tga";
|
||||||
|
}
|
||||||
|
setImage(img, temp, type);
|
||||||
setImageSize(img, style);
|
setImageSize(img, style);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue