mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-04 21:27:58 +02:00
* Don't try to setup UPNP if started with --noupnp.
This commit is contained in:
@@ -377,7 +377,7 @@ TomahawkApp::initLocalCollection()
|
|||||||
void
|
void
|
||||||
TomahawkApp::startServent()
|
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 ) )
|
if ( !m_servent.startListening( QHostAddress( QHostAddress::Any ), upnp ) )
|
||||||
{
|
{
|
||||||
qDebug() << "Failed to start listening with servent";
|
qDebug() << "Failed to start listening with servent";
|
||||||
|
Reference in New Issue
Block a user