Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 ffaf493
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/browser/main.cpp
Expand Up @@ -26,6 +26,7 @@
#include "qgsapplication.h"
#include "qgslogger.h"
#include "qgsconfig.h"
#include "qgsnetworkaccessmanager.h"
#include <qmainwindow.h>

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

QgsNetworkAccessManager::instance();

QgsBrowser w;

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

0 comments on commit ffaf493

Please sign in to comment.