Double clicking a song ends pause
This commit is contained in:
parent
9e0b8b4197
commit
6ef8591769
1 changed files with 2 additions and 1 deletions
|
|
@ -311,6 +311,7 @@ void MainWindow::on_songListView_doubleClicked(const QModelIndex &index)
|
||||||
|
|
||||||
if (index.column() == 0)
|
if (index.column() == 0)
|
||||||
{
|
{
|
||||||
|
isPaused = false;
|
||||||
if (isPlaying)
|
if (isPlaying)
|
||||||
{
|
{
|
||||||
audioPlayer->stop();
|
audioPlayer->stop();
|
||||||
|
|
@ -318,8 +319,8 @@ void MainWindow::on_songListView_doubleClicked(const QModelIndex &index)
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
isPlaying = true;
|
isPlaying = true;
|
||||||
updateControls();
|
|
||||||
}
|
}
|
||||||
|
updateControls();
|
||||||
|
|
||||||
flushGenerationQueue();
|
flushGenerationQueue();
|
||||||
ui->nowPlayingLabel->setText("Now Playing: Waiting for generation...");
|
ui->nowPlayingLabel->setText("Now Playing: Waiting for generation...");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue