Skip to content

Commit

Permalink
use setUseSystemConfiguration(true).
Browse files Browse the repository at this point in the history
  • Loading branch information
mattn committed Jan 28, 2011
1 parent 4de9913 commit c0398f3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/phantomjs.cpp
Expand Up @@ -203,7 +203,7 @@ void Phantom::execute(const QString &fileName)
exit(1);
return;
}
m_script = file.readAll();
m_script = file.readAll();
file.close();

m_page.mainFrame()->evaluateJavaScript(m_script);
Expand Down Expand Up @@ -341,6 +341,8 @@ int main(int argc, char** argv)
return 1;
}

QNetworkProxyFactory::setUseSystemConfiguration(true);

QApplication app(argc, argv);

app.setWindowIcon(QIcon(":/phantomjs-icon.png"));
Expand Down

0 comments on commit c0398f3

Please sign in to comment.