Skip to content

Commit ffaf493

Browse files
committed
Standalone browser: call QgsNetworkAccessManager::instance() to avoid assertion in setupDefaultProxyAndCache() on start-up on WFS connections due to smMainNAM being not initialized (#15006)
1 parent 571ee34 commit ffaf493

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/browser/main.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
#include "qgsapplication.h"
2727
#include "qgslogger.h"
2828
#include "qgsconfig.h"
29+
#include "qgsnetworkaccessmanager.h"
2930
#include <qmainwindow.h>
3031

3132
#include "qgseditorwidgetregistry.h"
@@ -113,6 +114,8 @@ int main( int argc, char ** argv )
113114
}
114115
}
115116

117+
QgsNetworkAccessManager::instance();
118+
116119
QgsBrowser w;
117120

118121
a.connect( &a, SIGNAL( aboutToQuit() ), &w, SLOT( saveWindowState() ) );

0 commit comments

Comments
 (0)