Commit 951d74ea authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

ProjectManager: Set the new workspace when saving a project as.

This avoid don't copying the medias to the new workspace.
parent dcfdb53e
...@@ -142,6 +142,10 @@ GUIProjectManager::createNewProjectFile( bool saveAs ) ...@@ -142,6 +142,10 @@ GUIProjectManager::createNewProjectFile( bool saveAs )
if ( outputFileName.endsWith( ".vlmc" ) == false ) if ( outputFileName.endsWith( ".vlmc" ) == false )
outputFileName += ".vlmc"; outputFileName += ".vlmc";
m_projectFile = new QFile( outputFileName ); m_projectFile = new QFile( outputFileName );
QFileInfo fInfo( outputFileName );
SettingsManager::getInstance()->setValue( "general/Workspace",
fInfo.absolutePath(), SettingsManager::Project);
appendToRecentProject( outputFileName ); appendToRecentProject( outputFileName );
if ( relocate == true ) if ( relocate == true )
Workspace::getInstance()->copyAllToWorkspace(); Workspace::getInstance()->copyAllToWorkspace();
......
...@@ -177,6 +177,7 @@ Workspace::copyAllToWorkspace() ...@@ -177,6 +177,7 @@ Workspace::copyAllToWorkspace()
QMutexLocker lock( m_mediasToCopyMutex ); QMutexLocker lock( m_mediasToCopyMutex );
while ( it != ite ) while ( it != ite )
{ {
qDebug() << "Enqueuing:" << it.value()->getMedia();
m_mediasToCopy.enqueue( it.value()->getMedia() ); m_mediasToCopy.enqueue( it.value()->getMedia() );
++it; ++it;
} }
......
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