- 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:
@@ -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%");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user