Update bb_editor.cpp

This commit is contained in:
Alexandre Almeida
2014-02-09 19:02:07 -02:00
parent f10d856290
commit e6ec932848

View File

@@ -171,22 +171,15 @@ void bbEditor::removeBBView( int _bb )
void bbEditor::updatePlayPauseIcon()
void bbEditor::setPauseIcon( bool pause )
{
if( engine::getSong()->playMode() != song::Mode_PlayBB )
if( pause == true )
{
m_playButton->setIcon( embed::getIconPixmap( "play" ) );
m_playButton->setIcon( embed::getIconPixmap( "pause" ) );
}
else
{
if( engine::getSong()->isPlaying() )
{
m_playButton->setIcon( embed::getIconPixmap( "pause" ) );
}
else
{
m_playButton->setIcon( embed::getIconPixmap( "play" ) );
}
m_playButton->setIcon( embed::getIconPixmap( "play" ) );
}
}