Clear screenshot if no save selected

1164-fix
Krzysztof Dermont 2020-07-05 22:10:27 +02:00 committed by Mateusz Przybył
parent 86dff7396e
commit c04b2738de
1 changed files with 3 additions and 4 deletions

View File

@ -157,7 +157,10 @@ void CScreenIO::IOUpdateList(bool isWrite)
}
if (m_saveList.size() <= static_cast<unsigned int>(sel))
{
pi->SetFilenameImage(""); // clear screenshot, nothing selected or New save selected
return;
}
std::string filename = m_saveList.at(sel) + "/screen.png";
if ( isWrite )
@ -166,10 +169,6 @@ void CScreenIO::IOUpdateList(bool isWrite)
{
pi->SetFilenameImage(filename.c_str());
}
else
{
pi->SetFilenameImage("");
}
}
else
{