We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aeb5ff2 commit b46d337Copy full SHA for b46d337
src/server/qgsserver.cpp
@@ -74,9 +74,10 @@ bool QgsServer::sCaptureOutput = true;
74
75
QgsServer::QgsServer( bool captureOutput )
76
{
77
- // Must be already instanciated
78
- if ( qApp == nullptr )
+ // QgsApplication must exist
+ if ( qobject_cast<QgsApplication*>( qApp ) == nullptr )
79
80
+ qFatal( "A QgsApplication must exist before a QgsServer instance can be created." );
81
abort();
82
}
83
sCaptureOutput = captureOutput;
0 commit comments