Don't add absolute path if screenshot name is empty

This commit is contained in:
Deve 2017-09-02 23:47:25 +02:00
parent 6f11a1669f
commit 6710fc2a5c

View File

@ -573,7 +573,10 @@ void Track::loadTrackInfo()
if(xml_node) loadCurves(*xml_node);
// Set the correct paths
m_screenshot = m_root+m_screenshot;
if (m_screenshot.length() > 0)
{
m_screenshot = m_root+m_screenshot;
}
delete root;
std::string dir = StringUtils::getPath(m_filename);