do not show splash if environment variable NOSPLASH is set

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1706 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-09-24 09:22:08 +00:00
parent b75c3239f4
commit 1ba1c097ee
2 changed files with 11 additions and 1 deletions

View File

@@ -29,6 +29,7 @@
#include <QtCore/QFileInfo>
#include <QtCore/QLocale>
#include <QtCore/QProcess>
#include <QtCore/QTimer>
#include <QtCore/QTranslator>
#include <QtGui/QApplication>
@@ -373,7 +374,10 @@ int main( int argc, char * * argv )
ss->setAttribute( Qt::WA_PaintOnScreen, true );
ss->setMask( splash.alphaChannel().createMaskFromColor(
QColor( 0, 0, 0 ) ) );
//ss->show();
if( !QProcess::systemEnvironment().contains( "NOSPLASH=1" ) )
{
ss->show();
}
qApp->processEvents();
// init central engine which handles all components of LMMS