From fc810f4af849733ef5fcc6e2b780f17cf22e77eb Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Tue, 10 Jun 2008 22:34:06 +0000 Subject: [PATCH] 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 --- src/core/song.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/core/song.cpp b/src/core/song.cpp index 7a237e3d3..ceb2510c7 100644 --- a/src/core/song.cpp +++ b/src/core/song.cpp @@ -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(); + } }