mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Missing half of the previous commit
Oops. I fixed the previous commit, tested the fix, and then forgot to update the commit and instead pushed it out. That was dumb. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
b688f417de
commit
3453234a3b
5 changed files with 14 additions and 15 deletions
|
@ -1678,3 +1678,16 @@ extern "C" bool in_planner()
|
|||
{
|
||||
return (currentApplicationState == "PlanDive" || currentApplicationState == "EditPlannedDive");
|
||||
}
|
||||
|
||||
void init_proxy()
|
||||
{
|
||||
QNetworkProxy proxy;
|
||||
proxy.setType(QNetworkProxy::ProxyType(prefs.proxy_type));
|
||||
proxy.setHostName(prefs.proxy_host);
|
||||
proxy.setPort(prefs.proxy_port);
|
||||
if (prefs.proxy_auth) {
|
||||
proxy.setUser(prefs.proxy_user);
|
||||
proxy.setPassword(prefs.proxy_pass);
|
||||
}
|
||||
QNetworkProxy::setApplicationProxy(proxy);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue