correction of password managment
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user