mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-04 09:01:46 -04: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);
|
QFileInfo fi(m_path);
|
||||||
QStringList list;
|
QStringList list;
|
||||||
list= fi.dir().entryList().filter(".wav",Qt::CaseInsensitive);
|
list= fi.dir().entryList().filter(".wav",Qt::CaseInsensitive);
|
||||||
for (i = 0; i < list.size()-1; ++i) {
|
for (i = 0; i < list.size(); ++i) {
|
||||||
if(i==list.size()-2) m_loopall=false;
|
if(i==list.size()-1) {
|
||||||
|
m_loopall=false;
|
||||||
|
MessageBox::information_message(this, tr("No more files to open."));
|
||||||
|
return;
|
||||||
|
}
|
||||||
len=list.at(i).length();
|
len=list.at(i).length();
|
||||||
if(list.at(i)==m_path.right(len)) {
|
if(list.at(i)==m_path.right(len)) {
|
||||||
int n=m_path.length();
|
int n=m_path.length();
|
||||||
|
Loading…
Reference in New Issue
Block a user