change to using toString

This commit is contained in:
AdenKoperczak 2024-06-29 12:51:01 -04:00
parent 9c41ce7841
commit 5afefeb673

View file

@ -394,7 +394,7 @@ TextureAtlas::Impl::LoadImage(const std::string& imagePath)
if (url.isLocalFile()) if (url.isLocalFile())
{ {
QString suffix = QFileInfo(qImagePath).suffix().toLower(); QString suffix = QFileInfo(qImagePath).suffix().toLower();
QString qLocalImagePath = url.toLocalFile(); QString qLocalImagePath = url.toString(QUrl::PreferLocalFile);
if (suffix == "svg") if (suffix == "svg")
{ {