Merge pull request #482 from langerhans/1.7-dev-macfix
Enable splash to go into background on Mac
This commit is contained in:
commit
ace7c207fe
|
@ -324,6 +324,10 @@ void BitcoinApplication::createSplashScreen(bool isaTestNet)
|
||||||
{
|
{
|
||||||
SplashScreen *splash = new SplashScreen(QPixmap(), 0, isaTestNet);
|
SplashScreen *splash = new SplashScreen(QPixmap(), 0, isaTestNet);
|
||||||
splash->setAttribute(Qt::WA_DeleteOnClose);
|
splash->setAttribute(Qt::WA_DeleteOnClose);
|
||||||
|
#if MAC_OSX
|
||||||
|
// QSplashScreen on Mac seems to always stay on top. Ugh.
|
||||||
|
splash->setWindowFlags(Qt::FramelessWindowHint);
|
||||||
|
#endif
|
||||||
splash->show();
|
splash->show();
|
||||||
connect(this, SIGNAL(splashFinished(QWidget*)), splash, SLOT(slotFinish(QWidget*)));
|
connect(this, SIGNAL(splashFinished(QWidget*)), splash, SLOT(slotFinish(QWidget*)));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue