- resolved a bug in retrying donwload

This commit is contained in:
2023-04-27 11:42:53 +02:00
parent f1a024c4b8
commit fc4f896d86
9 changed files with 36 additions and 117 deletions
+4 -1
View File
@@ -1,6 +1,7 @@
#include "mainwindow.h"
#include <QComboBox>
#include <QTextBlock>
#include "version.h"
using namespace std;
@@ -50,8 +51,9 @@ MainWindow::MainWindow(QWidget *parent)
AboutW.setupUi(&aboutDialog);
// text of About
this->about.version = version;
QString aboutText = tr("<h2>Client for rsync server</h2>") +
"<b>" + tr("Version") + ": " + this->about.version + "</b><br>" +
"<b>" + tr("Version") + ": " + version + "</b><br>" +
"<b>" + tr("Licence") + ": " + this->about.licence + "</b><br>" +
"<b>" + tr("Author") + ": " + this->about.author + "</b><br>" +
"<b>" + tr("EMail") + ": " + this->about.email + "</b><br>" +
@@ -1077,6 +1079,7 @@ void MainWindow::downloadFinished(int exitCode, QProcess::ExitStatus exitStatus)
pos = path.lastIndexOf(" => ");
this->downloading.server = path.midRef(pos+4).toString();
path.resize(pos);
this->downloading.port = this->settings.value("connexion/server/" + this->downloading.server).toInt();
this->downloading.path = path;
//getUserPassword(true);