when creating a new project, show main-window afterwards - fixes behaviour when debugging win32-version via WINE

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1426 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-08-01 21:08:52 +00:00
parent d9a5b78f6b
commit f3cae379e1

View File

@@ -396,16 +396,17 @@ int main( int argc, char * * argv )
engine::init();
delete ss;
engine::getMainWindow()->showMaximized();
// we try to load given file
if( file_to_load != "" )
{
engine::getMainWindow()->showMaximized();
engine::getSong()->loadProject( file_to_load );
}
else
{
engine::getSong()->createNewProject();
engine::getMainWindow()->showMaximized();
}
}
else