- resolved a bug in filelist: when clicking again on a directory add

again files
- resolved bug: at startup relaoding download do not start downloading
- added downloading filename in progress bar
This commit is contained in:
2023-02-15 13:49:31 +01:00
parent 623ad81c6b
commit 8419f8ad90
7 changed files with 217 additions and 136 deletions
+13
View File
@@ -27,7 +27,14 @@ downloadFile::downloadFile()
//Slot activated when download is cancelled
void MainWindow::cancelled(QProcess * process)
{
bool n = 0;
process->terminate();
n = process->waitForFinished(30000);
if (n == false)
{
process->kill();
}
}
// launch a rsync processus downloading a file
@@ -83,6 +90,12 @@ void MainWindow::readRsyncOutput()
// sending progress to Main window
emit progressSignal(value);
}
}else
{
if (!line.contains("receiving"))
{
emit fileName(line.remove(QChar('\n'), Qt::CaseInsensitive) + " %p%");
}
}
}
}