mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-26 06:08:42 -05:00
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:
parent
7d8a896e6a
commit
a8210b69ba
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user