fixed loading files in no-GUI mode

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1121 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-06-10 22:34:06 +00:00
parent 42d49faf53
commit fc810f4af8

View File

@@ -788,7 +788,10 @@ void song::createNewProject( void )
m_loadingProject = FALSE;
m_modified = FALSE;
engine::getMainWindow()->resetWindowTitle();
if( engine::getMainWindow() )
{
engine::getMainWindow()->resetWindowTitle();
}
}
@@ -912,7 +915,10 @@ void song::loadProject( const QString & _file_name )
m_loadingProject = FALSE;
m_modified = FALSE;
engine::getMainWindow()->resetWindowTitle();
if( engine::getMainWindow() )
{
engine::getMainWindow()->resetWindowTitle();
}
}