summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--qt-gui.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/qt-gui.cpp b/qt-gui.cpp
index eab282dc0..f955809d6 100644
--- a/qt-gui.cpp
+++ b/qt-gui.cpp
@@ -35,6 +35,7 @@
#include <QDebug>
#include <QMap>
#include <QMultiMap>
+#include <QNetworkProxy>
const char *default_dive_computer_vendor;
const char *default_dive_computer_product;
@@ -97,6 +98,10 @@ void init_ui(int *argcp, char ***argvp)
application = new QApplication(*argcp, *argvp);
+ // tell Qt to use system proxies
+ // note: on Linux, "system" == "environment variables"
+ QNetworkProxyFactory::setUseSystemConfiguration(true);
+
// the Gtk theme makes things unbearably ugly
// so switch to Oxygen in this case
if (application->style()->objectName() == "gtk+")