1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-04-13 12:31:52 +02:00

* Don't try to setup UPNP if started with --noupnp.

This commit is contained in:
Christian Muehlhaeuser 2010-12-07 16:03:17 +01:00
parent 7aaf3eb98c
commit cabaaa9710

View File

@ -377,7 +377,7 @@ TomahawkApp::initLocalCollection()
void
TomahawkApp::startServent()
{
bool upnp = arguments().contains( "--upnp" ) || settings()->value( "network/upnp", true ).toBool();
bool upnp = !arguments().contains( "--noupnp" ) && settings()->value( "network/upnp", true ).toBool();
if ( !m_servent.startListening( QHostAddress( QHostAddress::Any ), upnp ) )
{
qDebug() << "Failed to start listening with servent";