Commit 6f0dfc3c authored by Hugo Beauzee-Luyssen's avatar Hugo Beauzee-Luyssen

Just using the filename rather than the full path

parent f51def98
......@@ -48,7 +48,10 @@ void ProjectManager::cleanChanged( bool val )
{
m_needSave = !val;
if ( m_projectFile != NULL )
emit projectChanged( m_projectFile->fileName(), val );
{
QFileInfo fInfo( *m_projectFile );
emit projectChanged( fInfo.fileName(), val );
}
else
emit projectChanged( tr( "<Unsaved project>" ), val );
}
......@@ -56,8 +59,10 @@ void ProjectManager::cleanChanged( bool val )
void ProjectManager::loadTimeline()
{
QDomElement root = m_domDocument->documentElement();
QFileInfo fInfo( *m_projectFile );
MainWorkflow::getInstance()->loadProject( root.firstChildElement( "timeline" ) );
emit projectChanged( m_projectFile->fileName(), true );
emit projectChanged( fInfo.fileName(), true );
}
void ProjectManager::loadProject()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment