Information message when list of files to open has been exhausted.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@7160 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2016-10-07 16:35:34 +00:00
parent 7d8a896e6a
commit a8210b69ba

View File

@ -2022,8 +2022,12 @@ void MainWindow::on_actionOpen_next_in_directory_triggered() //Open Next
QFileInfo fi(m_path);
QStringList list;
list= fi.dir().entryList().filter(".wav",Qt::CaseInsensitive);
for (i = 0; i < list.size()-1; ++i) {
if(i==list.size()-2) m_loopall=false;
for (i = 0; i < list.size(); ++i) {
if(i==list.size()-1) {
m_loopall=false;
MessageBox::information_message(this, tr("No more files to open."));
return;
}
len=list.at(i).length();
if(list.at(i)==m_path.right(len)) {
int n=m_path.length();