added password protected connexion
correction bug on detection of already downloaded file
This commit is contained in:
@@ -44,7 +44,7 @@ const vector<string> explode(const string& s, const char& c, int n = 0)
|
||||
}
|
||||
|
||||
// test return code of rsync
|
||||
bool testRsyncReturn(QProcess * myProcess)
|
||||
bool testRsyncReturn(MainWindow * w, QProcess * myProcess)
|
||||
{
|
||||
if (myProcess->exitStatus() != 0)
|
||||
{
|
||||
@@ -55,6 +55,9 @@ bool testRsyncReturn(QProcess * myProcess)
|
||||
QMessageBox::Ok,
|
||||
QMessageBox::Ok);
|
||||
return true;
|
||||
}else if (myProcess->exitCode() == 5)
|
||||
{
|
||||
w->loginDialog.show();
|
||||
}else if (myProcess->exitCode() != 0)
|
||||
{
|
||||
QMessageBox::warning(
|
||||
@@ -67,3 +70,5 @@ bool testRsyncReturn(QProcess * myProcess)
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user