Hi

No i didnt get a error message from MINGW

With following code the for loop never end.
Why??

Qt Code:
  1. void Manage::removeArtistDirectory(const QString &artistDirectory)
  2. {
  3.  
  4. QFileInfo fileInfo(artistDirectory);
  5. if(fileInfo.isDir())
  6. {
  7. QDir dir(artistDirectory);
  8. QStringList fileList = dir.entryList();
  9. for(int i = 0; i < fileList.count(); ++i)
  10. {
  11. QMessageBox::information(this,"",fileList.at(i));
  12. removeArtistDirectory(fileList.at(i));
  13. }
  14. dir.rmdir(artistDirectory);
  15. }
  16. else
  17. {
  18. QFile::remove(artistDirectory);
  19. }
  20. }
To copy to clipboard, switch view to plain text mode