Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[ssucli] Obey HTTP proxy configuration
  • Loading branch information
martyone committed Aug 26, 2013
1 parent 3668c70 commit 58366a1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions rndssucli/main.cpp
Expand Up @@ -10,6 +10,7 @@
#include <QLocale>
#include <QLibraryInfo>
#include <QTimer>
#include <QNetworkProxyFactory>
#include "rndssucli.h"

int main(int argc, char** argv){
Expand All @@ -23,6 +24,8 @@ int main(int argc, char** argv){
QLibraryInfo::location(QLibraryInfo::TranslationsPath));
app.installTranslator(&qtTranslator);

QNetworkProxyFactory::setUseSystemConfiguration(true);

RndSsuCli mw;
QTimer::singleShot(0, &mw, SLOT(run()));

Expand Down
2 changes: 2 additions & 0 deletions rndssucli/rndssucli.pro
Expand Up @@ -2,6 +2,8 @@ TARGET = ssu
include(../ssuapplication.pri)
include(rndssucli_dependencies.pri)

QT += network

HEADERS = rndssucli.h
SOURCES = main.cpp \
rndssucli.cpp
Expand Down
3 changes: 3 additions & 0 deletions ssuurlresolver/main.cpp
Expand Up @@ -10,6 +10,7 @@
#include <QLocale>
#include <QLibraryInfo>
#include <QTimer>
#include <QNetworkProxyFactory>
#include "ssuurlresolver.h"

int main(int argc, char** argv){
Expand All @@ -23,6 +24,8 @@ int main(int argc, char** argv){
QLibraryInfo::location(QLibraryInfo::TranslationsPath));
app.installTranslator(&qtTranslator);

QNetworkProxyFactory::setUseSystemConfiguration(true);

SsuUrlResolver mw;
QTimer::singleShot(0, &mw, SLOT(run()));

Expand Down
2 changes: 2 additions & 0 deletions ssuurlresolver/ssuurlresolver.pro
Expand Up @@ -6,6 +6,8 @@ include(ssuurlresolver_dependencies.pri)
DESTDIR = $$DESTDIR_LIB/zypp/plugins/urlresolver
target.path = /usr/lib/zypp/plugins/urlresolver

QT += network

HEADERS = ssuurlresolver.h
SOURCES = main.cpp \
ssuurlresolver.cpp
Expand Down

0 comments on commit 58366a1

Please sign in to comment.