mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-03-21 08:19:42 +01:00
* Update MetadataEditor to use new PlaylistInterface API.
This commit is contained in:
parent
02218cceb8
commit
13738239a9
@ -248,12 +248,12 @@ MetadataEditor::loadResult( const Tomahawk::result_ptr& result )
|
||||
void
|
||||
MetadataEditor::enablePushButtons()
|
||||
{
|
||||
if ( m_interface->itemAt( m_index + 1 ) )
|
||||
if ( m_interface->queryAt( m_index + 1 ) )
|
||||
ui->forwardPushButton->setEnabled( true );
|
||||
else
|
||||
ui->forwardPushButton->setEnabled( false );
|
||||
|
||||
if ( m_interface->itemAt( m_index - 1 ) )
|
||||
if ( m_interface->queryAt( m_index - 1 ) )
|
||||
ui->previousPushButton->setEnabled( true );
|
||||
else
|
||||
ui->previousPushButton->setEnabled( false );
|
||||
@ -267,8 +267,8 @@ MetadataEditor::loadNextResult()
|
||||
|
||||
m_index++;
|
||||
|
||||
if ( m_interface->itemAt( m_index ) )
|
||||
loadQuery( m_interface->itemAt( m_index ) );
|
||||
if ( m_interface->queryAt( m_index ) )
|
||||
loadQuery( m_interface->queryAt( m_index ) );
|
||||
}
|
||||
|
||||
|
||||
@ -279,8 +279,8 @@ MetadataEditor::loadPreviousResult()
|
||||
|
||||
m_index--;
|
||||
|
||||
if ( m_interface->itemAt( m_index ) )
|
||||
loadQuery( m_interface->itemAt( m_index ) );
|
||||
if ( m_interface->queryAt( m_index ) )
|
||||
loadQuery( m_interface->queryAt( m_index ) );
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user