mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 17:24:08 +02:00
Merge pull request #1217 from birarda/master
fix for AC lack of QCoreApplication
This commit is contained in:
commit
40dec7c05f
2 changed files with 4 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue