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:
parent
7aaf3eb98c
commit
cabaaa9710
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user