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