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

* Only activate Playlist / Collection items on double-click.

* Cleanup whitespace / remove debug.
This commit is contained in:
Christian Muehlhaeuser 2010-10-27 05:00:48 +02:00
parent 23d7eeeb02
commit 96e7ea91f2
2 changed files with 7 additions and 7 deletions

View File

@ -443,19 +443,19 @@ Jabber_p::handleRosterPresence( const RosterItem& item, const std::string& resou
QRegExp regex( "tomahawk\\d+" );
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
//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 );
return;
}
qDebug() << "handling presence for resource of " << res;
//qDebug() << "handling presence for resource of" << res;
//qDebug() << Q_FUNC_INFO << "jid: " << QString::fromStdString(item.jid())
// << " resource: " << QString::fromStdString(resource)
// << " presencetype " << presence;
//qDebug() << Q_FUNC_INFO << "jid:" << QString::fromStdString(item.jid())
// << " resource:" << QString::fromStdString(resource)
// << " presencetype" << presence;
// "going offline" event
if ( !presenceMeansOnline( presence ) &&

View File

@ -35,7 +35,7 @@ TrackView::TrackView( QWidget* parent )
header()->setMinimumSectionSize( 60 );
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 ) ) );
}