fix for AC lack of QCoreApplication

This commit is contained in:
Stephen Birarda 2013-11-07 14:34:01 -08:00
parent 05d647557b
commit 9aacda7d56
2 changed files with 4 additions and 0 deletions

View file

@ -38,6 +38,8 @@ int argc = 0;
char** argv = NULL;
void childClient() {
QCoreApplication(::argc, ::argv);
// set the logging target to the the CHILD_TARGET_NAME
Logging::setTargetName(CHILD_TARGET_NAME);

View file

@ -45,6 +45,8 @@ Node::~Node() {
delete _localSocket;
if (QCoreApplication::instance()) {
// even if we have a QCoreApplication instance we don't get here unless it's been exec'ed
// which is only currently the case for interface
if (_linkedData) {
_linkedData->deleteLater();
}