Commit 49a758a3 authored by Scott Wheeler's avatar Scott Wheeler

Use the actions to play things rather than calling the methods directly.

This makes things that depend on the signals that are emited when the
actions are exectued (i.e. the system tray icon) reflect that the current
status.

svn path=/trunk/kdemultimedia/juk/; revision=292431
parent f1254383
......@@ -102,10 +102,8 @@ void JuK::setTime(int time)
void JuK::startPlayingPlaylist()
{
if(m_randomPlayAction->isChecked())
play(m_splitter->playRandomFile());
else
play(m_splitter->playFirstFile());
m_player->stop();
action("play")->activate();
}
void JuK::slotGuessTagInfoFromFile()
......@@ -175,9 +173,9 @@ void JuK::seekForward()
void JuK::playPause()
{
if(m_player->playing())
pause();
action("pause")->activate();
else
play();
action("play")->activate();
}
void JuK::volumeUp()
......@@ -769,9 +767,8 @@ void JuK::slotEditKeys()
void JuK::slotPlaySelectedFile()
{
QString file = m_splitter->playSelectedFile();
if(!file.isNull())
play(m_splitter->playSelectedFile());
m_player->stop();
action("play")->activate();
}
void JuK::slotConfigureTagGuesser()
......
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