aboutsummaryrefslogtreecommitdiff
path: root/qmpmainwindow.cpp
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-01-10 23:03:50 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-01-10 23:03:50 +0800
commit541f06f62286d61524be67356a5272f4428b88a6 (patch)
tree6b0d0f6a2e4eb18b5f02420f3019d056fb9d521c /qmpmainwindow.cpp
parent7fccb61519fe84b2ced274f1cc4859d5000e86c6 (diff)
downloadQMidiPlayer-541f06f62286d61524be67356a5272f4428b88a6.tar.xz
Lost Dream. (WTF)
Diffstat (limited to 'qmpmainwindow.cpp')
-rw-r--r--qmpmainwindow.cpp7
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];