bug correction: when stopping a dl an error when prompted

This commit is contained in:
2023-03-11 13:53:05 +01:00
parent f40e4f9485
commit e10558ff5b
3 changed files with 6 additions and 4 deletions
+2 -1
View File
@@ -48,7 +48,7 @@ const vector<string> explode(const string& s, const char& c, int n = 0)
// return true in case of error
bool testRsyncReturn(MainWindow * w, QProcess * myProcess)
{
if (myProcess->exitStatus() != 0)
if (myProcess->exitStatus() != 0 and w->stopDlAsked != true)
{
QMessageBox::warning(
w,
@@ -58,6 +58,7 @@ bool testRsyncReturn(MainWindow * w, QProcess * myProcess)
QMessageBox::Ok);
return true;
}
w->stopDlAsked = false;
return false;
}