diff options
Diffstat (limited to 'qmpmainwindow.cpp')
-rw-r--r-- | qmpmainwindow.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/qmpmainwindow.cpp b/qmpmainwindow.cpp index 242e52f..6e88f37 100644 --- a/qmpmainwindow.cpp +++ b/qmpmainwindow.cpp @@ -229,7 +229,12 @@ void qmpMainWindow::on_pbPlayPause_clicked() if(stopped) { QString fns=plistw->getFirstItem(); - if(!fns.length())return(void)(playing=false); + if(!fns.length()) + { + plistw->on_pbAdd_clicked(); + fns=plistw->getFirstItem(); + if(!fns.length())return(void)(playing=false); + } ui->lbFileName->setText(QUrl(fns).fileName()); player->playerLoadFile(fns.toStdString().c_str()); char ts[100]; |