diff --git a/mainwindow.cpp b/mainwindow.cpp
index 1b61aed..0e6184d 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -47,10 +47,6 @@ MainWindow::MainWindow(QWidget *parent)
// init about window
AboutW.setupUi(&aboutDialog);
- //init login dialog
- loginD.setupUi(&loginDialog);
- loginD.loginEdit->setFocus();
-
// text of About
QString aboutText = tr("
Client for rsync server
") +
"" + tr("Version") + ": " + this->about.version + "
" +
@@ -774,7 +770,6 @@ bool MainWindow::getUserPassword(Connexion * object)
if (logins.count() != 1)
{
//choose login in case of multiples logins
- loginD.loginEdit->setHistoryItems(logins);
login = QInputDialog::getItem(this,
"RsincUI",
tr("Select the user you want to connect with or enter a new one"),
diff --git a/mainwindow.h b/mainwindow.h
index b7e8322..9cd761a 100644
--- a/mainwindow.h
+++ b/mainwindow.h
@@ -5,7 +5,6 @@
#include "ui_mainwindow.h"
#include "ui_configuration.h"
#include "ui_about.h"
-#include "ui_login.h"
#include "downloadfile.h"
#include "tools.h"
#include
@@ -46,7 +45,6 @@
#include
#include
#include
-#include
QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
@@ -117,8 +115,6 @@ class MainWindow : public QMainWindow
Ui::Configuration config;
QDialog aboutDialog;
Ui::windowAbout AboutW;
- QDialog loginDialog;
- Ui::LoginDialog loginD;
std::vector serversList;
QSystemTrayIcon * trayIcon;
QString icon = "/usr/share/icons/RsyncUI.png";