Commit 58366a19 authored by Martin Kampas's avatar Martin Kampas

[ssucli] Obey HTTP proxy configuration

parent 3668c70a
......@@ -10,6 +10,7 @@
#include <QLocale>
#include <QLibraryInfo>
#include <QTimer>
#include <QNetworkProxyFactory>
#include "rndssucli.h"
int main(int argc, char** argv){
......@@ -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()));
......
......@@ -2,6 +2,8 @@ TARGET = ssu
include(../ssuapplication.pri)
include(rndssucli_dependencies.pri)
QT += network
HEADERS = rndssucli.h
SOURCES = main.cpp \
rndssucli.cpp
......
......@@ -10,6 +10,7 @@
#include <QLocale>
#include <QLibraryInfo>
#include <QTimer>
#include <QNetworkProxyFactory>
#include "ssuurlresolver.h"
int main(int argc, char** argv){
......@@ -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()));
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment