Macro should be HAVE_GUI, not WITH_GUI

This commit is contained in:
Nyall Dawson 2024-12-04 07:08:30 +10:00
parent c034d1b50a
commit ccf50da973
2 changed files with 5 additions and 5 deletions

View File

@ -40,7 +40,7 @@
#include <QString>
#include <QMutexLocker>
#include <QUrlQuery>
#ifdef WITH_GUI
#ifdef HAVE_GUI
#include <QInputDialog>
#endif

View File

@ -29,7 +29,7 @@
#include "qgsapplication.h"
#include "qgsauthmanager.h"
#include "qgsauthoauth2config.h"
#ifdef WITH_GUI
#ifdef HAVE_GUI
#include "qgsauthoauth2edit.h"
#endif
@ -418,7 +418,7 @@ void TestQgsAuthOAuth2Method::testOAuth2ConfigUtils()
void TestQgsAuthOAuth2Method::testDynamicRegistrationNoEndpoint()
{
#ifdef WITH_GUI
#ifdef HAVE_GUI
QgsAuthOAuth2Config *config = baseConfig();
config->setClientId( QString() );
config->setClientSecret( QString() );
@ -444,7 +444,7 @@ void TestQgsAuthOAuth2Method::testDynamicRegistrationNoEndpoint()
void TestQgsAuthOAuth2Method::testDynamicRegistration()
{
#ifdef WITH_GUI
#ifdef HAVE_GUI
QgsAuthOAuth2Config *config = baseConfig();
config->setClientId( QString() );
config->setClientSecret( QString() );
@ -483,7 +483,7 @@ void TestQgsAuthOAuth2Method::testDynamicRegistration()
void TestQgsAuthOAuth2Method::testDynamicRegistrationJwt()
{
#ifdef WITH_GUI
#ifdef HAVE_GUI
QgsAuthOAuth2Config *config = baseConfig();
config->setClientId( QString() );
config->setClientSecret( QString() );