Always show Tape's window on Mac OS when the app starts, even when is empty.

--HG--
branch : develop
This commit is contained in:
Roman Telezhynskyi 2015-12-02 21:57:16 +02:00
parent 1ccb8f3452
commit 61eec32420

View file

@ -420,16 +420,12 @@ bool MApplication::event(QEvent *e)
case QEvent::ApplicationActivate:
{
Clean();
if (!mainWindows.isEmpty())
TMainWindow *mw = MainWindow();
if (mw && not mw->isMinimized())
{
TMainWindow *mw = MainWindow();
if (mw && not mw->isMinimized())
{
mw->show();
}
return true;
mw->show();
}
break;
return true;
}
#endif //defined(Q_OS_MAC)
default: