mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 19:04:32 +02:00
fix return-type in lambda
This commit is contained in:
parent
3dbf28b7b4
commit
086b9d404a
2 changed files with 10 additions and 7 deletions
|
@ -487,7 +487,10 @@ QUuid EntityScriptingInterface::addAction(QString actionTypeString, QUuid entity
|
|||
if (actionType == ACTION_TYPE_NONE) {
|
||||
return false;
|
||||
}
|
||||
return simulation->actionFactory(actionType, actionID, entity, arguments);
|
||||
if (simulation->actionFactory(actionType, actionID, entity, arguments)) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
if (success) {
|
||||
return actionID;
|
||||
|
|
|
@ -39,12 +39,12 @@ namespace Setting {
|
|||
void init() {
|
||||
// read the ApplicationInfo.ini file for Name/Version/Domain information
|
||||
QSettings::setDefaultFormat(QSettings::IniFormat);
|
||||
QSettings applicationInfo(PathUtils::resourcesPath() + "info/ApplicationInfo.ini", QSettings::IniFormat);
|
||||
// set the associated application properties
|
||||
applicationInfo.beginGroup("INFO");
|
||||
QCoreApplication::setApplicationName(applicationInfo.value("name").toString());
|
||||
QCoreApplication::setOrganizationName(applicationInfo.value("organizationName").toString());
|
||||
QCoreApplication::setOrganizationDomain(applicationInfo.value("organizationDomain").toString());
|
||||
// QSettings applicationInfo(PathUtils::resourcesPath() + "info/ApplicationInfo.ini", QSettings::IniFormat);
|
||||
// // set the associated application properties
|
||||
// applicationInfo.beginGroup("INFO");
|
||||
// QCoreApplication::setApplicationName(applicationInfo.value("name").toString());
|
||||
// QCoreApplication::setOrganizationName(applicationInfo.value("organizationName").toString());
|
||||
// QCoreApplication::setOrganizationDomain(applicationInfo.value("organizationDomain").toString());
|
||||
|
||||
// Let's set up the settings Private instance on its own thread
|
||||
QThread* thread = new QThread();
|
||||
|
|
Loading…
Reference in a new issue