1
0
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:
Christian Muehlhaeuser
2011-02-27 16:05:23 +01:00
parent 8945577fcd
commit 38b0519b1a
3 changed files with 4 additions and 4 deletions

View File

@@ -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; }

View File

@@ -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() );

View File

@@ -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 );