1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-02-13 13:18:43 +02:00

Merge pull request #4789 from Laserlicht/last_map

fix remembering last map
This commit is contained in:
DjWarmonger 2024-10-17 12:18:52 +02:00 committed by GitHub
commit 7ddbf492f0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -693,7 +693,7 @@ void SelectionTab::selectFileName(std::string fname)
for(int i = (int)allItems.size() - 1; i >= 0; i--)
{
if(allItems[i]->fileURI == fname)
if(boost::to_upper_copy(allItems[i]->fileURI) == fname)
{
auto [folderName, baseFolder, parentExists, fileInFolder] = checkSubfolder(allItems[i]->originalFileURI);
curFolder = baseFolder != "" ? baseFolder + "/" : "";
@ -704,7 +704,7 @@ void SelectionTab::selectFileName(std::string fname)
for(int i = (int)curItems.size() - 1; i >= 0; i--)
{
if(curItems[i]->fileURI == fname)
if(boost::to_upper_copy(curItems[i]->fileURI) == fname)
{
slider->scrollTo(i);
selectAbs(i);