Commit b86bbd94 authored by Kevin Whitaker's avatar Kevin Whitaker

Make sure asking for next track when last one plays removes last from playlist.

parent 0174e778
......@@ -20,6 +20,7 @@ find_package(KF5 ${KF_MIN_VERSION} REQUIRED COMPONENTS
Service
Plasma
I18n
DNSSD
)
add_subdirectory(src)
......
......@@ -15,6 +15,7 @@ target_link_libraries( plasma_engine_simplecast
KF5::Plasma
KF5::Service
KF5::I18n
KF5::DNSSD
)
install(TARGETS plasma_engine_simplecast DESTINATION ${KDE_INSTALL_PLUGINDIR}/plasma/dataengine)
......
......@@ -44,6 +44,12 @@ bool MiniMediaPlayer::nextTrack()
emit playlistChanged(getTrackNames());
return true;
}
else if(playlist.size() == 1)
{
playlist.pop_front();
m_player->stop();
emit playlistChanged(getTrackNames());
}
return false;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment