From fec9975f5854c1e816ff0c1504d5d7aa07527a88 Mon Sep 17 00:00:00 2001 From: Nimetu Date: Sun, 20 Oct 2019 22:35:05 +0300 Subject: [PATCH] Fixed: Downloaded css file was not used --HG-- branch : develop --- code/nel/src/gui/group_html.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/code/nel/src/gui/group_html.cpp b/code/nel/src/gui/group_html.cpp index 98b908c7d..23bd2e671 100644 --- a/code/nel/src/gui/group_html.cpp +++ b/code/nel/src/gui/group_html.cpp @@ -659,10 +659,12 @@ namespace NLGUI if (download.type == StylesheetType) { - // no tmpfile if file was already in cache - if (CFile::fileExists(tmpfile) && CFile::fileExists(download.dest)) + if (CFile::fileExists(tmpfile)) { - CFile::deleteFile(download.dest); + if (CFile::fileExists(download.dest)) + { + CFile::deleteFile(download.dest); + } CFile::moveFile(download.dest, tmpfile); } cssDownloadFinished(download.url, download.dest);