1
0
mirror of https://github.com/tomahawk-player/tomahawk.git synced 2025-08-06 22:26:32 +02:00

Style fixes in SourceTreeView.

This commit is contained in:
Christian Muehlhaeuser
2016-02-23 02:23:47 +01:00
parent 8679fd5055
commit 620d3fe3fc

View File

@@ -570,7 +570,7 @@ SourceTreeView::addToLocal()
// copy to a link and then generate a new playlist from that // copy to a link and then generate a new playlist from that
// this way we cheaply regenerate the needed controls // this way we cheaply regenerate the needed controls
ScriptJob* job = Utils::LinkGenerator::instance()->openLink( playlist ); ScriptJob* job = Utils::LinkGenerator::instance()->openLink( playlist );
if( !job ) if ( !job )
{ {
// No supported generator // No supported generator
return; return;
@@ -585,7 +585,7 @@ SourceTreeView::addToLocal()
// just create the new playlist with the same values // just create the new playlist with the same values
QList< query_ptr > queries; QList< query_ptr > queries;
foreach( const plentry_ptr& e, playlist->entries() ) foreach ( const plentry_ptr& e, playlist->entries() )
queries << e->query(); queries << e->query();
playlist_ptr newpl = Playlist::create( SourceList::instance()->getLocal(), uuid(), playlist->title(), playlist->info(), playlist->creator(), playlist->shared(), queries ); playlist_ptr newpl = Playlist::create( SourceList::instance()->getLocal(), uuid(), playlist->title(), playlist->info(), playlist->creator(), playlist->shared(), queries );
@@ -658,7 +658,6 @@ SourceTreeView::latchOff( const Tomahawk::source_ptr& source )
void void
SourceTreeView::latchModeToggled( bool checked ) SourceTreeView::latchModeToggled( bool checked )
{ {
tDebug() << Q_FUNC_INFO << checked;
disconnect( this, SLOT( latchOff() ) ); disconnect( this, SLOT( latchOff() ) );
if ( !m_contextMenuIndex.isValid() ) if ( !m_contextMenuIndex.isValid() )
return; return;
@@ -755,7 +754,7 @@ SourceTreeView::onCustomContextMenu( const QPoint& pos )
customMenu.addActions( customActions ); customMenu.addActions( customActions );
customMenu.exec( mapToGlobal( pos ) ); customMenu.exec( mapToGlobal( pos ) );
} }
m_contextMenuIndex = QModelIndex(); //we invalidate it because there's no active context menu m_contextMenuIndex = QModelIndex(); // we invalidate it because there's no active context menu
} }