diff options
author | Chris Xiong <chirs241097@gmail.com> | 2020-11-11 19:35:43 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2020-11-11 19:39:19 +0800 |
commit | dfc11c56f096b93ec70d0263f134918a5c9323ba (patch) | |
tree | 3f4e6d9158d8bc56e981384d33cbe860c07d137a /qmidiplayer-desktop/qmpplistwindow.cpp | |
parent | c597d09df05e4a6e1b3832a0f26ad21ce4c5b8cb (diff) | |
download | QMidiPlayer-dfc11c56f096b93ec70d0263f134918a5c9323ba.tar.xz |
Don't spam qmpmidioutfluid everywhere.
Also stop using stuff removed from Qt 6 (not yet done).
Diffstat (limited to 'qmidiplayer-desktop/qmpplistwindow.cpp')
-rw-r--r-- | qmidiplayer-desktop/qmpplistwindow.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/qmidiplayer-desktop/qmpplistwindow.cpp b/qmidiplayer-desktop/qmpplistwindow.cpp index 3a1062e..aa708ae 100644 --- a/qmidiplayer-desktop/qmpplistwindow.cpp +++ b/qmidiplayer-desktop/qmpplistwindow.cpp @@ -192,7 +192,8 @@ void qmpPlistWindow::on_pbAddFolder_clicked() while (di.hasNext()) { QString c = di.next(); - if ((c.endsWith(".mid") || c.endsWith(".midi") || c.endsWith(".rmi")) && fluid_is_midifile(c.toStdString().c_str())) + //TODO: use file readers to do this check? + if ((c.endsWith(".mid") || c.endsWith(".midi") || c.endsWith(".rmi"))) ui->lwFiles->addItem(new QListWidgetItem(c)); } } |