correction of password managment

This commit is contained in:
2023-03-08 16:03:24 +01:00
parent 63bcc965b5
commit 5f5277199a
7 changed files with 161 additions and 249 deletions
+3 -13
View File
@@ -44,29 +44,18 @@ const vector<string> explode(const string& s, const char& c, int n = 0)
}
// test return code of rsync
// return true in case of error
bool testRsyncReturn(MainWindow * w, QProcess * myProcess)
{
if (myProcess->exitStatus() != 0)
{
QMessageBox::warning(
NULL,
w,
"RsyncUI",
myProcess->errorString(),
QMessageBox::Ok,
QMessageBox::Ok);
return true;
}else if (myProcess->exitCode() == 5)
{
w->loginDialog.show();
}else if (myProcess->exitCode() != 0)
{
QMessageBox::warning(
NULL,
"RsyncUI",
rsyncErrorStrings[myProcess->exitCode()],
QMessageBox::Ok,
QMessageBox::Ok);
return true;
}
return false;
}
@@ -78,3 +67,4 @@ QString getFileType(QString filename)
QString returnValue = mime.name().section('/',0 ,0);
return returnValue;
}