stop the audio playbacks when closing the current document, not just once when exiting

svn path=/trunk/KDE/kdegraphics/okular/; revision=797093
remotes/origin/KDE/4.1
Pino Toscano 18 years ago
parent db5ae37e1d
commit 39463af93b
  1. 6
      core/document.cpp

@ -1206,9 +1206,6 @@ Document::Document( QWidget *widget )
Document::~Document()
{
// stop any audio playback
AudioPlayer::instance()->stopPlaybacks();
// delete generator, pages, and related stuff
closeDocument();
@ -1493,6 +1490,9 @@ void Document::closeDocument()
d->m_fontThread = 0;
}
// stop any audio playback
AudioPlayer::instance()->stopPlaybacks();
// close the current document and save document info if a document is still opened
if ( d->m_generator && d->m_pagesVector.size() > 0 )
{

Loading…
Cancel
Save