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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user