Skip to content

Commit

Permalink
[messagingframework] Avoid unnecessary Wayland connection. Contribute…
Browse files Browse the repository at this point in the history
…s to JB#34345
  • Loading branch information
pvuorela committed Mar 1, 2016
1 parent 835239c commit 29e3b43
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion qmf/src/tools/messageserver/main.cpp
Expand Up @@ -45,6 +45,7 @@
#include <qmaillog.h>
#include <qloggers.h>
#include <signal.h>
#include <stdlib.h>
#ifdef USE_HTML_PARSER
#include <QtGui>
#endif
Expand Down Expand Up @@ -74,7 +75,8 @@ static void recreateLoggers(int n)
Q_DECL_EXPORT int main(int argc, char** argv)
{
#ifdef USE_HTML_PARSER
// Need for html parsing by <QTextdocument> in qmailmessage.cpp
// Need for html parsing by <QTextdocument> in qmailmessage.cpp, but don't need real UI
setenv("QT_QPA_PLATFORM", "minimal", 1);
QGuiApplication app(argc, argv);
#else
QCoreApplication app(argc, argv);
Expand Down

0 comments on commit 29e3b43

Please sign in to comment.