Skip to content

Commit

Permalink
fix QPermission
Browse files Browse the repository at this point in the history
  • Loading branch information
Gin committed Nov 28, 2023
1 parent 9a80c84 commit 572cb5a
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions SerialPrograms/Source/CommonFramework/SetupSettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,11 @@
#include <QFile>
#include <QMessageBox>
#include <QApplication>
#if QT_CONFIG(permissions)
#include <QPermissions>
#include <QtVersionChecks>
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
#if QT_CONFIG(permissions)
#include <QPermissions>
#endif
#endif
#include "Globals.h"
#include "GlobalSettingsPanel.h"
Expand Down Expand Up @@ -145,6 +148,7 @@ bool migrate_stats(Logger& logger){

void set_permissions(QObject& object){
#if defined(__APPLE__)
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
#if QT_CONFIG(permissions)
cout << "Chcecking MacOS Permissions..." << endl;
QCameraPermission camera_permission;
Expand Down Expand Up @@ -190,6 +194,7 @@ void set_permissions(QObject& object){
}
#endif
#endif
#endif
}


Expand Down

0 comments on commit 572cb5a

Please sign in to comment.