mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-04 13:17:34 +02:00
* Only activate Playlist / Collection items on double-click.
* Cleanup whitespace / remove debug.
This commit is contained in:
@@ -443,19 +443,19 @@ Jabber_p::handleRosterPresence( const RosterItem& item, const std::string& resou
|
|||||||
QRegExp regex( "tomahawk\\d+" );
|
QRegExp regex( "tomahawk\\d+" );
|
||||||
if( res != "tomahawk-tomahawk" && !res.contains( regex ) )
|
if( res != "tomahawk-tomahawk" && !res.contains( regex ) )
|
||||||
{
|
{
|
||||||
qDebug() << "not considering resource of " << res;
|
//qDebug() << "not considering resource of" << res;
|
||||||
// Disco them to check if they are tomahawk-capable
|
// Disco them to check if they are tomahawk-capable
|
||||||
|
|
||||||
//qDebug() << "No tomahawk resource, DISCOing... " << jid.full().c_str();
|
//qDebug() << "No tomahawk resource, DISCOing..." << jid.full().c_str();
|
||||||
//m_client->disco()->getDiscoInfo( jid, "", this, 0 );
|
//m_client->disco()->getDiscoInfo( jid, "", this, 0 );
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
qDebug() << "handling presence for resource of " << res;
|
//qDebug() << "handling presence for resource of" << res;
|
||||||
|
|
||||||
//qDebug() << Q_FUNC_INFO << "jid: " << QString::fromStdString(item.jid())
|
//qDebug() << Q_FUNC_INFO << "jid:" << QString::fromStdString(item.jid())
|
||||||
// << " resource: " << QString::fromStdString(resource)
|
// << " resource:" << QString::fromStdString(resource)
|
||||||
// << " presencetype " << presence;
|
// << " presencetype" << presence;
|
||||||
|
|
||||||
// "going offline" event
|
// "going offline" event
|
||||||
if ( !presenceMeansOnline( presence ) &&
|
if ( !presenceMeansOnline( presence ) &&
|
||||||
|
@@ -35,7 +35,7 @@ TrackView::TrackView( QWidget* parent )
|
|||||||
header()->setMinimumSectionSize( 60 );
|
header()->setMinimumSectionSize( 60 );
|
||||||
restoreColumnsState();
|
restoreColumnsState();
|
||||||
|
|
||||||
connect( this, SIGNAL( activated( QModelIndex ) ), SLOT( onItemActivated( QModelIndex ) ) );
|
connect( this, SIGNAL( doubleClicked( QModelIndex ) ), SLOT( onItemActivated( QModelIndex ) ) );
|
||||||
connect( header(), SIGNAL( sectionResized( int, int, int ) ), SLOT( onSectionResized( int, int, int ) ) );
|
connect( header(), SIGNAL( sectionResized( int, int, int ) ), SLOT( onSectionResized( int, int, int ) ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user