mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-04-13 12:31:52 +02:00
* Fixed crash in DbSyncConnection.
This commit is contained in:
parent
3061a95cb1
commit
3eeec206f1
2
README
2
README
@ -95,7 +95,7 @@ To build the app:
|
||||
-----------------
|
||||
$ mkdir build && cd build
|
||||
|
||||
Pick one of the following two choices. If unsure pick the second one, you probably want a GUI.
|
||||
Pick one of the following two choices. If uncertain pick the second one, you probably want a GUI.
|
||||
$ cmake -Dgui=no .. # enables headless mode, build without GUI
|
||||
$ cmake .. # normal build including GUI
|
||||
|
||||
|
@ -93,7 +93,7 @@ DatabaseCommand::factory( const QVariant& op, const source_ptr& source )
|
||||
return cmd;
|
||||
}
|
||||
|
||||
qDebug() << "ERRROR in" << Q_FUNC_INFO << name;
|
||||
qDebug() << "ERROR in" << Q_FUNC_INFO << name;
|
||||
// Q_ASSERT( false );
|
||||
return NULL;
|
||||
}
|
||||
|
@ -204,7 +204,7 @@ DBSyncConnection::handleMsg( msg_ptr msg )
|
||||
DatabaseCommand *cmd = DatabaseCommand::factory( m, m_source );
|
||||
if ( !cmd )
|
||||
{
|
||||
qDebug() << "UNKNOWN DBOP CMD" << cmd->commandname() << cmd->guid();
|
||||
qDebug() << "UNKNOWN DBOP CMD";
|
||||
|
||||
if( !msg->is( Msg::FRAGMENT ) ) // last msg in this batch
|
||||
lastOpApplied();
|
||||
|
@ -100,7 +100,7 @@ Servent::startListening( QHostAddress ha, bool upnp, int port )
|
||||
// last.fm office firewall policy hack
|
||||
// (corp. firewall allows outgoing connections to this port,
|
||||
// so listen on this if you want lastfmers to connect to you)
|
||||
if( qApp->arguments().contains("--porthack") )
|
||||
if( qApp->arguments().contains( "--porthack" ) )
|
||||
{
|
||||
tryport = 3389;
|
||||
pf->remove( tryport );
|
||||
|
@ -91,7 +91,7 @@ public:
|
||||
void reverseOfferRequest( ControlConnection* orig_conn, const QString& key, const QString& theirkey );
|
||||
|
||||
void setExternalAddress( QHostAddress ha, int port );
|
||||
bool visibleExternally() const { return m_externalPort > 0; }
|
||||
bool visibleExternally() const { return m_externalPort > 0 && !m_externalAddress.isNull(); }
|
||||
QHostAddress externalAddress() const { return m_externalAddress; }
|
||||
int externalPort() const { return m_externalPort; }
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user