some more merge fixes

This commit is contained in:
Volker Fischer 2020-06-17 19:34:51 +02:00
parent a2a489e6f0
commit 30d8181423
4 changed files with 13 additions and 13 deletions

View file

@ -13,10 +13,10 @@ CONFIG += qt \
QT += network \
xml
!contains(CONFIG, "headless") {
QT += widgets
} else {
contains(CONFIG, "headless") {
QT -= gui
} else {
QT += widgets
}
TRANSLATIONS = src/res/translation/translation_de_DE.ts \
@ -992,12 +992,12 @@ DISTFILES_OPUS += libs/opus/AUTHORS \
libs/opus/celt/arm/armopts.s.in \
libs/opus/celt/arm/celt_pitch_xcorr_arm.s \
!contains(CONFIG, "headless") {
contains(CONFIG, "headless") {
DEFINES += HEADLESS
} else {
HEADERS += $$HEADERS_GUI
SOURCES += $$SOURCES_GUI
FORMS += $$FORMS_GUI
} else {
DEFINES += HEADLESS
}
# use external OPUS library if requested

View file

@ -503,7 +503,7 @@ int main ( int argc, char** argv )
}
#ifdef HEADLESS
if (bUseGUI)
if ( bUseGUI )
{
bUseGUI = false;
tsConsole << "No GUI support compiled. Running in headless mode." << endl;
@ -538,8 +538,8 @@ int main ( int argc, char** argv )
QCoreApplication* pApp = new QCoreApplication ( argc, argv );
#else
QCoreApplication* pApp = bUseGUI
? new QApplication ( argc, argv )
: new QCoreApplication ( argc, argv );
? new QApplication ( argc, argv )
: new QCoreApplication ( argc, argv );
#endif
#ifdef ANDROID
@ -662,6 +662,7 @@ int main ( int argc, char** argv )
bDisconnectAllClientsOnQuit,
bUseDoubleSystemFrameSize,
eLicenceType );
#ifndef HEADLESS
if ( bUseGUI )
{

View file

@ -22,10 +22,6 @@
*
\******************************************************************************/
#ifndef HEADLESS
# include <QMessageBox>
#endif
#include "soundbase.h"

View file

@ -26,6 +26,9 @@
#include <QThread>
#include <QString>
#ifndef HEADLESS
# include <QMessageBox>
#endif
#include "global.h"
#include "util.h"