- resolved a bug in retrying donwload
This commit is contained in:
+4
-1
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user