X-Git-Url: https://git.toastfreeware.priv.at/toast/confclerk.git/blobdiff_plain/e618f1876e5eea5fe227a6b708d2bda1e8d55197..4bf83ee2db6c69d9388ed1ab0d9146fe5ae4e962:/src/gui/mainwindow.cpp diff --git a/src/gui/mainwindow.cpp b/src/gui/mainwindow.cpp index dbbcb2f..9181343 100644 --- a/src/gui/mainwindow.cpp +++ b/src/gui/mainwindow.cpp @@ -49,9 +49,6 @@ #include "tabcontainer.h" #include "appsettings.h" -const QString PROXY_USERNAME; -const QString PROXY_PASSWD; - MainWindow::MainWindow(QWidget* parent): QMainWindow(parent) { setupUi(this); @@ -85,8 +82,8 @@ MainWindow::MainWindow(QWidget* parent): QMainWindow(parent) { AppSettings::isDirectConnection() ? QNetworkProxy::NoProxy : (QNetworkProxy::ProxyType)AppSettings::proxyType(), AppSettings::proxyAddress(), AppSettings::proxyPort(), - PROXY_USERNAME, - PROXY_PASSWD); + AppSettings::proxyUsername(), + AppSettings::proxyPassword()); QNetworkProxy::setApplicationProxy(proxy); // event details have changed @@ -366,8 +363,8 @@ void MainWindow::on_settingsAction_triggered() AppSettings::isDirectConnection() ? QNetworkProxy::NoProxy : (QNetworkProxy::ProxyType)AppSettings::proxyType(), AppSettings::proxyAddress(), AppSettings::proxyPort(), - PROXY_USERNAME, - PROXY_PASSWD); + AppSettings::proxyUsername(), + AppSettings::proxyPassword()); QNetworkProxy::setApplicationProxy(proxy); } }