Merge pull request #1217 from birarda/master

fix for AC lack of QCoreApplication
This commit is contained in:
Philip Rosedale 2013-11-07 14:35:11 -08:00
commit 40dec7c05f
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();
}