prasad, please use [ Code]...[/Code] tags to post code, its really a pain to read the code.

Also try this quickly, (I have not read your complete code)

Qt Code:
  1. void ftp::run()
  2. {
  3. QString name;
  4. if(!fileNameList.size()>0) {
  5. qDebug() << "fileNameList.size()=0";
  6. return;
  7. } else {
  8. name = fileNameList.takeFirst();
  9. }
  10. exec(); //Add this
  11. }
To copy to clipboard, switch view to plain text mode