mirror of
https://github.com/tomahawk-player/tomahawk.git
synced 2025-08-07 06:36:55 +02:00
* Fixed resetting the active playlist.
This commit is contained in:
@@ -32,7 +32,8 @@ public:
|
||||
|
||||
unsigned int volume() const { if ( m_audio ) return m_audio->volume() * 100.0; else return 0; }; // in percent
|
||||
bool isPaused() const { return m_audio->isPaused(); }
|
||||
|
||||
bool isPlaying() const { return m_audio->isPlaying(); }
|
||||
|
||||
/* Returns the PlaylistInterface of the currently playing track. Note: This might be different to the current playlist! */
|
||||
PlaylistInterface* currentTrackPlaylist() const { return m_currentTrackPlaylist; }
|
||||
|
||||
|
@@ -525,7 +525,7 @@ PlaylistManager::setPage( ViewPage* page, bool trackHistory )
|
||||
if ( !currentPlaylistInterface() )
|
||||
emit tempPageActivated();
|
||||
|
||||
if ( !AudioEngine::instance()->playlist() )
|
||||
if ( !AudioEngine::instance()->isPlaying() )
|
||||
AudioEngine::instance()->setPlaylist( currentPlaylistInterface() );
|
||||
|
||||
m_stack->setCurrentWidget( page->widget() );
|
||||
|
@@ -103,8 +103,6 @@ public slots:
|
||||
void showQueue();
|
||||
void hideQueue();
|
||||
|
||||
void setFilter( const QString& filter );
|
||||
|
||||
void setRepeatMode( PlaylistInterface::RepeatMode mode );
|
||||
void setShuffled( bool enabled );
|
||||
|
||||
@@ -117,6 +115,7 @@ public slots:
|
||||
void onPauseClicked();
|
||||
|
||||
private slots:
|
||||
void setFilter( const QString& filter );
|
||||
void applyFilter();
|
||||
void onWidgetDestroyed( QWidget* widget );
|
||||
|
||||
|
Reference in New Issue
Block a user