Skip to content

Commit 090033f

Browse files
respect system proxy settings (flameshot-org#4674)
1 parent 48e45bf commit 090033f

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/main.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
#include <QApplication>
3131
#include <QDir>
3232
#include <QLibraryInfo>
33+
#include <QNetworkProxyFactory>
3334
#include <QSharedMemory>
3435
#include <QTimer>
3536
#include <QTranslator>
@@ -209,6 +210,7 @@ int main(int argc, char* argv[])
209210
QCoreApplication::setApplicationVersion(APP_VERSION);
210211
QCoreApplication::setApplicationName(QStringLiteral("flameshot"));
211212
QCoreApplication::setOrganizationName(QStringLiteral("flameshot"));
213+
QNetworkProxyFactory::setUseSystemConfiguration(true);
212214

213215
// no arguments, just launch Flameshot
214216
if (argc == 1) {

0 commit comments

Comments
 (0)