mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-01 03:40:16 +02:00
We're not a document based app, so let's not try to be have like one (and fail doing so). I don't mind if someone reintroduces a more iTunes-like behavior on OS X, but at least this doesn't break things anymore.
This commit is contained in:
@@ -172,7 +172,10 @@ TomahawkApp::init()
|
|||||||
m_headless = true;
|
m_headless = true;
|
||||||
m_headless = arguments().contains( "--headless" );
|
m_headless = arguments().contains( "--headless" );
|
||||||
setWindowIcon( QIcon( RESPATH "icons/tomahawk-icon-128x128.png" ) );
|
setWindowIcon( QIcon( RESPATH "icons/tomahawk-icon-128x128.png" ) );
|
||||||
|
|
||||||
|
#ifndef Q_OS_MAC
|
||||||
setQuitOnLastWindowClosed( false );
|
setQuitOnLastWindowClosed( false );
|
||||||
|
#endif
|
||||||
|
|
||||||
if ( arguments().contains( "--splash" ) )
|
if ( arguments().contains( "--splash" ) )
|
||||||
{
|
{
|
||||||
|
@@ -751,14 +751,9 @@ TomahawkWindow::closeEvent( QCloseEvent* e )
|
|||||||
e->ignore();
|
e->ignore();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
#else
|
|
||||||
if ( m_trayIcon )
|
|
||||||
{
|
|
||||||
m_trayIcon->setShowHideWindow( false );
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
e->accept();
|
QMainWindow::closeEvent( e );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user