Skip to content
Permalink
Browse files

Standalone browser: call QgsNetworkAccessManager::instance() to avoid…

… assertion in setupDefaultProxyAndCache() on start-up on WFS connections due to smMainNAM being not initialized (#15006)
  • Loading branch information
rouault committed Jun 12, 2016
1 parent 571ee34 commit ffaf493d5f513be5d987a87c9446c112f7b02d4c
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/browser/main.cpp
@@ -26,6 +26,7 @@
#include "qgsapplication.h"
#include "qgslogger.h"
#include "qgsconfig.h"
#include "qgsnetworkaccessmanager.h"
#include <qmainwindow.h>

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

QgsNetworkAccessManager::instance();

QgsBrowser w;

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

0 comments on commit ffaf493

Please sign in to comment.
You can’t perform that action at this time.