Commit fcbebc2b authored by Scott Wheeler's avatar Scott Wheeler

If the file name returned is null don't try to play it.

CCMAIL:71043-done@bugs.kde.org

svn path=/trunk/kdemultimedia/juk/; revision=277189
parent 7d66c431
......@@ -937,6 +937,13 @@ void JuK::slotPollPlay()
m_noSeek = false;
}
void JuK::slotPlaySelectedFile()
{
QString file = m_splitter->playSelectedFile();
if(!file.isNull())
play(m_splitter->playSelectedFile());
}
void JuK::slotSetVolume(int volume)
{
if(m_player && m_sliderAction && m_sliderAction->volumeSlider() &&
......
......@@ -170,7 +170,7 @@ private slots:
* m_playTimer to know when to call itself again.
*/
void slotPollPlay();
void slotPlaySelectedFile() { play(m_splitter->playSelectedFile()); }
void slotPlaySelectedFile();
void startPlayingPlaylist();
void slotToggleMenuBar() { menuBar()->isVisible() ? menuBar()->hide() : menuBar()->show(); }
void slotGuessTagInfoFromFile();
......
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