Don't attempt to start Qt if DISPLAY is not set - guaranteed to exit abruptly.

git-svn-id: http://voip.null.ro/svn/yate@130 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2004-12-15 00:28:37 +00:00
parent 9f4c57ddbb
commit ef71db43c4
1 changed files with 3 additions and 1 deletions

View File

@ -26,6 +26,8 @@
#include <telengine.h>
#include <telephony.h>
#include <stdlib.h>
#include "../contrib/qt/qtclientform.hpp"
#include <qapplication.h>
@ -90,7 +92,7 @@ QtYateClientPlugin::~QtYateClientPlugin ()
void QtYateClientPlugin::initialize (void)
{
if (!thread) {
if (!thread && ::getenv("DISPLAY")) {
Output ("Initializing Qt Client");
thread = new QtClientThread;
thread->startup();