Don't allow reading a .wav file while decoder is busy.

This commit is contained in:
Joe Taylor 2020-05-07 14:35:46 -04:00
parent 5693be1ee1
commit bc8173a395

View File

@ -2704,8 +2704,8 @@ void MainWindow::read_wav_file (QString const& fname)
void MainWindow::on_actionOpen_next_in_directory_triggered() //Open Next
{
if(m_decoderBusy) return;
monitor (false);
int i,len;
QFileInfo fi(m_path);
QStringList list;
@ -2733,6 +2733,7 @@ void MainWindow::on_actionOpen_next_in_directory_triggered() //Open Next
//Open all remaining files
void MainWindow::on_actionDecode_remaining_files_in_directory_triggered()
{
if(m_decoderBusy) return;
m_loopall=true;
on_actionOpen_next_in_directory_triggered();
}