Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
452a565e
Commit
452a565e
authored
Aug 10, 2009
by
Daniel Molkentin
Browse files
Do not crash on some system when no proxy is set
parent
0ab8f1ed
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/plugins/welcome/rssfetcher.cpp
View file @
452a565e
...
...
@@ -120,7 +120,9 @@ RSSFetcher::RSSFetcher(int maxItems, QObject *parent)
void
RSSFetcher
::
fetch
(
const
QUrl
&
url
)
{
m_http
.
setProxy
(
QNetworkProxyFactory
::
systemProxyForQuery
(
QNetworkProxyQuery
(
url
)).
first
());
QList
<
QNetworkProxy
>
proxies
=
QNetworkProxyFactory
::
systemProxyForQuery
(
QNetworkProxyQuery
(
url
));
if
(
proxies
.
count
()
>
0
)
m_http
.
setProxy
(
proxies
.
first
());
m_http
.
setHost
(
url
.
host
());
QString
agentStr
=
QString
(
"Qt-Creator/%1 (QHttp %2; %3; %4; %5 bit)"
)
.
arg
(
Core
::
Constants
::
IDE_VERSION_LONG
).
arg
(
qVersion
())
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment