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:
parent
9f4c57ddbb
commit
ef71db43c4
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue