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

ProjectManager: Remove the unsaved project concept.

It is now mandatory to create a project before editing
parent f9c7ba5d
......@@ -45,7 +45,6 @@
#define SETTINGS_BACKUP "private/EmergencyBackup"
const QString ProjectManager::unNamedProject = ProjectManager::tr( "Untitled Project" );
const QString ProjectManager::unSavedProject = ProjectManager::tr( "Unsaved Project" );
const QString ProjectManager::backupSuffix = "~";
ProjectManager::ProjectManager( Settings* projectSettings, Settings* vlmcSettings )
......@@ -203,15 +202,12 @@ ProjectManager::createAutoSaveOutputFileName( const QString& baseName ) const
QString
ProjectManager::projectName() const
{
//FIXME: Can this be true?
if ( m_projectName.isEmpty() == true )
{
if ( m_projectFile != NULL )
{
QFileInfo fInfo( *m_projectFile );
return fInfo.baseName();
}
return ProjectManager::unSavedProject;
Q_ASSERT( m_projectFile != NULL );
QFileInfo fInfo( *m_projectFile );
return fInfo.baseName();
}
return m_projectName;
}
......
......@@ -84,7 +84,6 @@ class ProjectManager : public QObject
public:
static const QString unNamedProject;
static const QString unSavedProject;
static const QString backupSuffix;
......@@ -164,6 +163,7 @@ signals:
* - The revision (if activated) has changed
*/
void projectUpdated( const QString& projectName, bool savedState );
/**
* \brief Used to signal that the project has been saved.
*
......
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