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

ProjectManager: Remove projectClosed signal

parent 83abd44f
......@@ -44,8 +44,6 @@ Library::Library( Workspace *workspace , ProjectManager *projectManager )
: m_cleanState( true )
, m_workspace( workspace )
{
connect( projectManager, SIGNAL( projectClosed() ),
this, SLOT( clear() ) );
connect( this, SIGNAL( cleanStateChanged( bool ) ),
projectManager, SLOT( cleanChanged( bool ) ) );
}
......
......@@ -35,7 +35,7 @@ Project::Project()
m_settings = new Settings( QString() );
m_projectManager = new ProjectManager( m_settings, Core::getInstance()->settings() );
m_undoStack = new QUndoStack;
m_workflow = new MainWorkflow( m_projectManager );
m_workflow = new MainWorkflow();
m_workspace = new Workspace( m_settings );
m_library = new Library( m_workspace, m_projectManager );
......
......@@ -407,8 +407,6 @@ ProjectManager::closeProject()
m_projectFile = NULL;
m_needSave = false;
m_projectName = QString();
//This one is for every part that need to clean something when the project is closed.
emit projectClosed();
//This one is for the mainwindow, to update the title bar
Project::getInstance()->undoStack()->clear();
emit projectUpdated( projectName(), true );
......
......@@ -170,7 +170,6 @@ signals:
* Right now, it is only used by the undo stack to flag the current state as clean.
*/
void projectSaved();
void projectClosed();
/**
* @brief projectLoaded Emited when a project is loaded (which also include a project
......
......@@ -38,7 +38,7 @@
#include <QDomElement>
#include <QMutex>
MainWorkflow::MainWorkflow( ProjectManager *projectManager, int trackCount ) :
MainWorkflow::MainWorkflow( int trackCount ) :
m_blackOutput( NULL ),
m_lengthFrame( 0 ),
m_renderStarted( false ),
......@@ -60,7 +60,6 @@ MainWorkflow::MainWorkflow( ProjectManager *projectManager, int trackCount ) :
this, SLOT( lengthUpdated( qint64 ) ) );
m_currentFrame[i] = 0;
}
connect( projectManager, SIGNAL( projectClosed() ), this, SLOT( clear() ) );
}
MainWorkflow::~MainWorkflow()
......
......@@ -57,7 +57,7 @@ class MainWorkflow : public QObject
Q_OBJECT
public:
MainWorkflow( ProjectManager* projectManager, int trackCount = 64 );
MainWorkflow( int trackCount = 64 );
~MainWorkflow();
/**
......
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