Defer browsing while web server not set

ryzomclassic-develop
kaetemi 3 years ago
parent deb1c7c131
commit 8b6c3276e4
No known key found for this signature in database
GPG Key ID: 9873C4D40BB479BC

@ -3275,10 +3275,15 @@ namespace NLGUI
string finalUrl;
bool isLocal = lookupLocalFile (finalUrl, _URL.c_str(), true);
if (!isLocal && _URL.c_str()[0] == '/' && !options.webServer.empty())
if (!isLocal && _URL.c_str()[0] == '/')
{
if (options.webServer.empty())
{
// Try again later
return;
}
finalUrl = options.webServer + finalUrl;
// FIXME: In case options.webServer is empty(), can we defer browsing? -Kaetemi
}
_URL = finalUrl;

Loading…
Cancel
Save